From f8217eface747847a0035754265e79e51a59f8df Mon Sep 17 00:00:00 2001 From: Quentin Machu Date: Fri, 15 Jul 2016 17:54:47 +0200 Subject: [PATCH] updater: enable fetching of RHEL 5 vulnerabilities (#217) The RHEL updater currently ignores vulnerabilities for CentOS <= 5. s the naming of the constant firstConsideredRHEL suggests it, it should actually considers CentOS 5 and ignores CentOS < 5. Fixes #215 --- updater/fetchers/rhel/rhel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/fetchers/rhel/rhel.go b/updater/fetchers/rhel/rhel.go index de4072d1..51f802d9 100644 --- a/updater/fetchers/rhel/rhel.go +++ b/updater/fetchers/rhel/rhel.go @@ -290,7 +290,7 @@ func toFeatureVersions(criteria criteria) []database.FeatureVersion { } } - if osVersion > firstConsideredRHEL { + if osVersion >= firstConsideredRHEL { featureVersion.Feature.Namespace.Name = "centos" + ":" + strconv.Itoa(osVersion) } else { continue