Skip to content

Commit

Permalink
[purl] Fix fedora URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 authored and marcwrobel committed Jul 6, 2024
1 parent b9cee57 commit 4d0b3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _plugins/purl-to-url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def build_cargo_url(purl)
def build_rpm_url(purl)
# TODO: namespace = amzn/centos/redhat is not covered
if purl.namespace == 'fedora'
"https://packages.fedoraproject.org/pkgs/#{purl.name}/"
return "https://packages.fedoraproject.org/pkgs/#{purl.name}/"
end
# not a distro package
if (!purl.namespace) && purl.qualifiers['repository_url']
Expand Down

0 comments on commit 4d0b3ba

Please sign in to comment.