Skip to content

Commit

Permalink
Add more debian mantainers clues
Browse files Browse the repository at this point in the history
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
  • Loading branch information
AyanSinhaMahapatra committed Jan 29, 2024
1 parent 1cd5d02 commit 0b26ec8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/packagedcode/debian.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,12 @@ def build_package_data(debian_data, datasource_id, package_type='deb', distro=No

maintainer_clues_for_namespace = {
'packages.debian.org': 'debian',
'lists.debian.org': 'debian',
'lists.alioth.debian.org': 'debian',
'@debian.org': 'debian',
'debian-init-diversity@': 'debian',
'lists.ubuntu.com': 'ubuntu',
'@canonical.com': 'ubuntu',
}


Expand Down
12 changes: 6 additions & 6 deletions tests/packagedcode/data/debian/ubuntu-var-lib-dpkg/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
{
"type": "deb",
"namespace": null,
"namespace": "debian",
"name": "base-passwd",
"version": "3.5.47",
"qualifiers": {
Expand Down Expand Up @@ -279,7 +279,7 @@
"repository_homepage_url": null,
"repository_download_url": null,
"api_data_url": null,
"package_uid": "pkg:deb/base-passwd@3.5.47?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758",
"package_uid": "pkg:deb/debian/base-passwd@3.5.47?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths": [
"ubuntu-var-lib-dpkg/var/lib/dpkg/status",
"ubuntu-var-lib-dpkg/var/lib/dpkg/info/base-passwd.md5sums"
Expand All @@ -288,7 +288,7 @@
"debian_installed_status_db",
"debian_installed_md5sums"
],
"purl": "pkg:deb/base-passwd@3.5.47?architecture=amd64"
"purl": "pkg:deb/debian/base-passwd@3.5.47?architecture=amd64"
},
{
"type": "deb",
Expand Down Expand Up @@ -1832,7 +1832,7 @@
}
],
"for_packages": [
"pkg:deb/base-passwd@3.5.47?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758"
"pkg:deb/debian/base-passwd@3.5.47?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758"
],
"scan_errors": []
},
Expand Down Expand Up @@ -2589,7 +2589,7 @@
},
{
"type": "deb",
"namespace": null,
"namespace": "debian",
"name": "base-passwd",
"version": "3.5.47",
"qualifiers": {
Expand Down Expand Up @@ -2641,7 +2641,7 @@
"repository_download_url": null,
"api_data_url": null,
"datasource_id": "debian_installed_status_db",
"purl": "pkg:deb/base-passwd@3.5.47?architecture=amd64"
"purl": "pkg:deb/debian/base-passwd@3.5.47?architecture=amd64"
},
{
"type": "deb",
Expand Down

0 comments on commit 0b26ec8

Please sign in to comment.