Implement format-short-text

This commit is contained in:
Kota Kanbe
2017-05-15 23:39:28 +09:00
committed by kota kanbe
parent b285cb0e57
commit 3be11cf52f
12 changed files with 671 additions and 212 deletions

View File

@@ -673,6 +673,7 @@ func (o *debian) parseChangelog(changelog, name, ver string, confidence models.C
pack := o.Packages[name]
pack.Changelog = clog
// TODO Mutex
o.Packages[name] = pack
cves := []DetectedCveID{}

View File

@@ -326,6 +326,7 @@ func (o *redhat) scanUnsecurePackagesUsingYumCheckUpdate() (models.VulnInfos, er
o.log.Debugf("%s", pp.Sprintf("%v", packages))
// set candidate version info
//TODO Mutex??
o.Packages.MergeNewVersion(packages)
// Collect CVE-IDs in changelog
@@ -355,6 +356,7 @@ func (o *redhat) scanUnsecurePackagesUsingYumCheckUpdate() (models.VulnInfos, er
Contents: *clog,
Method: models.ChangelogExactMatchStr,
}
//TODO Mutex
o.Packages[p.Name] = p
break
}