You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the generated PURL is pkg:generic/main.tar.gz?download_url=https://codeberg.org/janantos/brow6el/archive/main.tar.gz even though it correctly generates the Filename field as brow6el-main.tar.gz and it correctly records the Download URL.
Expected behavior
The Name value in the PURL should be brow6el-main-tar-gz rather than main.tar.gz
The packageurl-python is only aware of the provided Download URL string: https://codeberg.org/janantos/brow6el/archive/main.tar.gz
To figure out the brow6el-main.tar.gz filename value, an HTTP request is required.
Note that DejaCode does this HTTP request to get and set the filename value of the Package model but it does not mess with the PURL values as it relies on the packageurl-python library output.
The Name value in the PURL should be brow6el-main-tar-gz rather than main.tar.gz
I don't remember seeing this syntax for a Package name before. The package name here seems to be brow6el.
A better PURL for this should be something like pkg:codeberg/janantos/brow6el@main but this would need to happen on the packageurl-python side first.
Activity
tdruez commentedon Jan 5, 2026
@DennisClark The "Download URL" to "PURL" is handled by the packageurl-python library.
The
packageurl-pythonis only aware of the provided Download URL string:https://codeberg.org/janantos/brow6el/archive/main.tar.gzTo figure out the
brow6el-main.tar.gzfilename value, an HTTP request is required.Note that DejaCode does this HTTP request to get and set the
filenamevalue of the Package model but it does not mess with the PURL values as it relies on the packageurl-python library output.I don't remember seeing this syntax for a Package name before. The package name here seems to be
brow6el.A better PURL for this should be something like
pkg:codeberg/janantos/brow6el@mainbut this would need to happen on thepackageurl-pythonside first.DennisClark commentedon Jan 5, 2026
@tdruez thanks for the explanation
DennisClark commentedon Jan 5, 2026
new issue created package-url/packageurl-python#222