Skip to content

Commit

Permalink
Merge pull request quay#413 from transcedentalia/master
Browse files Browse the repository at this point in the history
Fixing the always database revision 0 for Ubuntu
  • Loading branch information
jzelinskie authored Jun 12, 2017
2 parents 4716500 + ca3372a commit 52cd66d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/featurens/aptsources/aptsources.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ func (d detector) Detect(files tarutil.FilesMap) (*database.Namespace, error) {
OS = "debian"
break
}

line[2] = strings.Split(line[2], "/")[0]
version, found = database.UbuntuReleasesMapping[line[2]]
if found {
OS = "ubuntu"
Expand Down
1 change: 1 addition & 0 deletions ext/vulnsrc/ubuntu/ubuntu.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ func parseUbuntuCVE(fileContent io.Reader) (vulnerability database.Vulnerability
// Only consider the package if its status is needed, active, deferred, not-affected or
// released. Ignore DNE (package does not exist), needs-triage, ignored, pending.
if md["status"] == "needed" || md["status"] == "active" || md["status"] == "deferred" || md["status"] == "released" || md["status"] == "not-affected" {
md["release"] = strings.Split(md["release"], "/")[0]
if _, isReleaseIgnored := ubuntuIgnoredReleases[md["release"]]; isReleaseIgnored {
continue
}
Expand Down

0 comments on commit 52cd66d

Please sign in to comment.