Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for RPM distros in url2purl and purl2ulrl #122

Open
pombredanne opened this issue Jun 6, 2023 · 1 comment
Open

Add support for RPM distros in url2purl and purl2ulrl #122

pombredanne opened this issue Jun 6, 2023 · 1 comment

Comments

@pombredanne
Copy link
Member

pombredanne commented Jun 6, 2023

This should include RHEL, Fedora, SUSE, CentOS and Rocky Linux/CIQ


@pombredanne http://dl.rockylinux.org/vault/centos/8.5.2111/AppStream/x86_64/kickstart/Packages/dejavu-lgc-sans-fonts-2.35-7.el8.noarch.rpm yields this PURL: pkg:generic/dejavu-lgc-sans-fonts-2.35-7.el8.noarch.rpm
It should instead return a proper RPM PURL.

@tdruez

from packageurl.contrib import url2purl

>>> str(url2purl.get_purl("http://dl.rockylinux.org/vault/centos/8.5.2111/AppStream/x86_64/kickstart/Packages/dejavu-lgc-sans-fonts-2.35-7.el8.noarch.rpm "))

'pkg:generic/dejavu-lgc-sans-fonts-2.35-7.el8.noarch.rpm?download_url=http://dl.rockylinux.org/vault/centos/8.5.2111/AppStream/x86_64/kickstart/Packages/dejavu-lgc-sans-fonts-2.35-7.el8.noarch.rpm%20'
@pombredanne pombredanne changed the title Add support for RPM distros in url2purla nd purl2ulrl Add support for RPM distros in url2purl and purl2ulrl Jun 6, 2023
@tdruez
Copy link
Collaborator

tdruez commented Dec 8, 2023

@pombredanne Could you provide the list of input URLs and their expected PURLs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants