[WIP]fix(scan): collect a running version of kernel-devel (#1044)

* fix(scan): collect a running kernel-devel version

* refactor
This commit is contained in:
Kota Kanbe
2020-09-01 14:37:40 +09:00
committed by GitHub
parent 7969b343b0
commit 4f1578b2d6
4 changed files with 54 additions and 12 deletions

View File

@@ -100,7 +100,7 @@ func (o RedHatBase) update(r *models.ScanResult, defPacks defPacks) (nCVEs int)
cveContents := vinfo.CveContents
if v, ok := vinfo.CveContents[ctype]; ok {
if v.LastModified.After(ovalContent.LastModified) {
util.Log.Debugf("%s, OvalID: %d ignroed: ",
util.Log.Debugf("%s, OvalID: %d ignored: ",
cve.CveID, defPacks.def.ID)
} else {
util.Log.Debugf("%s OVAL will be overwritten", cve.CveID)