Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode committed Aug 16, 2023
1 parent e4ca7c1 commit e558222
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grype/pkg/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ func excludePackage(comprehensiveDistroFeed bool, p pkg.Package, parent pkg.Pack
}

// If the parent is an OS package and the child is not, exclude the child
// Except if the parent is an APK package, because the APK feed
// has fix but not vulnerability data, so grype may be relying on the
// related package to provide vulnerability data.
// for distros that have a comprehensive feed. That is, distros that list
// vulnerabilities that aren't fixed. Otherwise, the child package might
// be needed for matching.
if comprehensiveDistroFeed && isOSPackage(parent) && !isOSPackage(p) {
return true
}
Expand Down

0 comments on commit e558222

Please sign in to comment.