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:
Martin Prpič 2025-01-28 12:56:55 -05:00 committed by GitHub
parent cc80e6106c
commit 58dc43de86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,6 +92,9 @@ func packageURL(name, arch string, epoch *int, srpm string, version, release str
if namespace == "rhel" { if namespace == "rhel" {
namespace = "redhat" namespace = "redhat"
} }
if strings.HasPrefix(namespace, "opensuse") {
namespace = "opensuse"
}
qualifiers := map[string]string{} qualifiers := map[string]string{}