Skip to content

Commit 0b26ec8

Browse files
Add more debian mantainers clues
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 1cd5d02 commit 0b26ec8

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/packagedcode/debian.py

+5
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,12 @@ def build_package_data(debian_data, datasource_id, package_type='deb', distro=No
675675

676676
maintainer_clues_for_namespace = {
677677
'packages.debian.org': 'debian',
678+
'lists.debian.org': 'debian',
679+
'lists.alioth.debian.org': 'debian',
680+
'@debian.org': 'debian',
681+
'debian-init-diversity@': 'debian',
678682
'lists.ubuntu.com': 'ubuntu',
683+
'@canonical.com': 'ubuntu',
679684
}
680685

681686

tests/packagedcode/data/debian/ubuntu-var-lib-dpkg/expected.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
},
7676
{
7777
"type": "deb",
78-
"namespace": null,
78+
"namespace": "debian",
7979
"name": "base-passwd",
8080
"version": "3.5.47",
8181
"qualifiers": {
@@ -279,7 +279,7 @@
279279
"repository_homepage_url": null,
280280
"repository_download_url": null,
281281
"api_data_url": null,
282-
"package_uid": "pkg:deb/base-passwd@3.5.47?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758",
282+
"package_uid": "pkg:deb/debian/base-passwd@3.5.47?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758",
283283
"datafile_paths": [
284284
"ubuntu-var-lib-dpkg/var/lib/dpkg/status",
285285
"ubuntu-var-lib-dpkg/var/lib/dpkg/info/base-passwd.md5sums"
@@ -288,7 +288,7 @@
288288
"debian_installed_status_db",
289289
"debian_installed_md5sums"
290290
],
291-
"purl": "pkg:deb/base-passwd@3.5.47?architecture=amd64"
291+
"purl": "pkg:deb/debian/base-passwd@3.5.47?architecture=amd64"
292292
},
293293
{
294294
"type": "deb",
@@ -1832,7 +1832,7 @@
18321832
}
18331833
],
18341834
"for_packages": [
1835-
"pkg:deb/base-passwd@3.5.47?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758"
1835+
"pkg:deb/debian/base-passwd@3.5.47?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758"
18361836
],
18371837
"scan_errors": []
18381838
},
@@ -2589,7 +2589,7 @@
25892589
},
25902590
{
25912591
"type": "deb",
2592-
"namespace": null,
2592+
"namespace": "debian",
25932593
"name": "base-passwd",
25942594
"version": "3.5.47",
25952595
"qualifiers": {
@@ -2641,7 +2641,7 @@
26412641
"repository_download_url": null,
26422642
"api_data_url": null,
26432643
"datasource_id": "debian_installed_status_db",
2644-
"purl": "pkg:deb/base-passwd@3.5.47?architecture=amd64"
2644+
"purl": "pkg:deb/debian/base-passwd@3.5.47?architecture=amd64"
26452645
},
26462646
{
26472647
"type": "deb",

0 commit comments

Comments
 (0)