Repository navigation
Emit arch qualifier instead of architecture in deb package PURLs (fixes #5553) - #5565
Open
Shubham-dev-stack wants to merge 1 commit into
Open
Shubham-dev-stack wants to merge 1 commit into
Shubham-dev-stack wants to merge 1 commit into
Conversation
…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. Signed-off-by: Shubham <shubhamcyberr@gmail.com>
Shubham-dev-stack
force-pushed
the
fix-debian-purl-arch-qualifier
branch
from
December 2, 2026 03:04
5904ea3 to
7f77a27
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/libapache2-mod-md@2.4.38-3%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