Skip to content

Emit arch qualifier instead of architecture in deb package PURLs (fixes #5553) - #5565

Open
Shubham-dev-stack wants to merge 1 commit into
aboutcode-org:developfrom
Shubham-dev-stack:fix-debian-purl-arch-qualifier
Open

Shubham-dev-stack wants to merge 1 commit into
aboutcode-org:developfrom
Shubham-dev-stack:fix-debian-purl-arch-qualifier

Conversation

@Shubham-dev-stack

Copy link
Copy Markdown

Fixes #5553

Description

In \src/packagedcode/debian.py, \�uild_package_data_from_package_filename()\ was populating package qualifiers with \dict(architecture=deb.architecture), emitting PURLs like \pkg:deb/debian/[email protected]%2Bdeb10u10?architecture=amd64.

According to the Package URL deb type specification and existing Debian handlers in ScanCode, the standard qualifier key for architecture is \�rch.

This PR updates \�uild_package_data_from_package_filename()\ to set \qualifiers = dict(arch=deb.architecture)\ and updates the matching assertions in \ ests/packagedcode/test_debian.py.

Tasks

…ge PURLs (fixes aboutcode-org#5553)

In build_package_data_from_package_filename(), Debian binary package archives were emitting qualifiers with architecture=<arch> and PURLs ending in ?architecture=<arch>. According to the Package URL deb type specification and the rest of Debian package handlers in ScanCode, the standard qualifier key is arch.

Update build_package_data_from_package_filename() to set qualifiers = dict(arch=deb.architecture) and update the corresponding assertions in tests/packagedcode/test_debian.py.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

scancode --package on .deb archives emits ?architecture= instead of ?arch= in PURLs

1 participant