mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
fix: update namespace value for OpenSUSE distros (#3615)
Instead of namespacing them to the specific distro version, such as Leap or Tumbleweed, the namespace value is set to the vendor itself: "opensuse". Resolves #3534 Signed-off-by: Martin Prpič <mprpic@redhat.com>
This commit is contained in:
parent
cc80e6106c
commit
58dc43de86
@ -92,6 +92,9 @@ func packageURL(name, arch string, epoch *int, srpm string, version, release str
|
||||
if namespace == "rhel" {
|
||||
namespace = "redhat"
|
||||
}
|
||||
if strings.HasPrefix(namespace, "opensuse") {
|
||||
namespace = "opensuse"
|
||||
}
|
||||
|
||||
qualifiers := map[string]string{}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user