Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Filter out same upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Jan 17, 2023
1 parent 865a45c commit 97956e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbom/syft.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func toPackage(p pkg2.Package, rels []artifact.Relationship, qualifiers map[stri
pkg.Purl = purl.String()

// add package for source packages
if sourceNameAndVersion.name != "" {
if sourceNameAndVersion.name != "" && sourceNameAndVersion.name != p.Name {
if sourceNameAndVersion.overwriteNamespace {
purl.Namespace = ""
}
Expand Down

0 comments on commit 97956e0

Please sign in to comment.