Skip to content

Commit

Permalink
fix: test for ptr relationship member
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 May 10, 2024
1 parent 39e9843 commit 231d85a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions grype/pkg/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ func removePackagesByOverlap(catalog *pkg.Collection, relationships []artifact.R
if ok && excludePackage(comprehensiveDistroFeed, p, from) {
continue
}

fromPtr, ok := r.From.(*pkg.Package)
if ok && excludePackage(comprehensiveDistroFeed, p, *fromPtr) {
continue
}
}
out.Add(p)
}
Expand Down

0 comments on commit 231d85a

Please sign in to comment.