-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter out packages owned by OS packages
For example, if the rpm "python3-rpm" is installed, it brings a python package called "rpm" with it, which is just python bindings to RPM. But this python package is part of "python3-rpm", and should not be matched against directly. Signed-off-by: Will Murphy <[email protected]>
- Loading branch information
1 parent
9050883
commit 32a96ce
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -666,6 +666,13 @@ func Test_RemoveBinaryPackagesByOverlap(t *testing.T) { | |
[]string{"rpm:[email protected] -> apk:[email protected]"}), | ||
expectedPackages: []string{"apk:[email protected]", "rpm:[email protected]"}, | ||
}, | ||
{ | ||
name: "python bindings for system RPM install", | ||
sbom: catalogWithOverlaps( | ||
[]string{"rpm:[email protected]", "python:[email protected]"}, | ||
[]string{"rpm:[email protected] -> python:[email protected]"}), | ||
expectedPackages: []string{"rpm:[email protected]"}, | ||
}, | ||
} | ||
for _, test := range tests { | ||
t.Run(test.name, func(t *testing.T) { | ||
|