Page MenuHomeSoftware Heritage
Paste P577

unexpected debian package format in loader makes the loader explode mid-air when trying to get the ['files'] property
ActivePublic

Authored by ardumont on Dec 19 2019, 1:20 PM.
PACKAGE_FILES3 = {
'bullseye/main/0.10-1': {
'files': {
'libbarcode-datamatrix-perl_0.10-1.debian.tar.xz': {
'md5sum': '30bd8e44db00610333af39ccd0805110',
'name': 'libbarcode-datamatrix-perl_0.10-1.debian.tar.xz',
'sha256': '2ad26b045a4f01e9866b2a808faaadc68104f7246e267b4be0df82a87bc547fb',
'size': 1712,
'uri': 'http://deb.debian.org/debian//pool/main/libb/libbarcode-datamatrix-perl/libbarcode-datamatrix-perl_0.10-1.debian.tar.xz'},
'libbarcode-datamatrix-perl_0.10-1.dsc': {
'md5sum': 'd714b9ed894162b6cc73c5cd44a4abbb',
'name': 'libbarcode-datamatrix-perl_0.10-1.dsc',
'sha256': 'b480032c31758d44ba87b291ebe9400bb79305dad7ffdb8860c2caacb1f3472d',
'size': 2202,
'uri': 'http://deb.debian.org/debian//pool/main/libb/libbarcode-datamatrix-perl/libbarcode-datamatrix-perl_0.10-1.dsc'},
'libbarcode-datamatrix-perl_0.10.orig.tar.gz': {
'md5sum': 'fce102fc4126aa7d1eed3a61edf99b06',
'name': 'libbarcode-datamatrix-perl_0.10.orig.tar.gz',
'sha256': 'e1381e83afa549c3143cab53bd7e902d75757d312b0a223fc6b2df9bdfa8d4d2',
'size': 50161,
'uri': 'http://deb.debian.org/debian//pool/main/libb/libbarcode-datamatrix-perl/libbarcode-datamatrix-perl_0.10.orig.tar.gz'}},
'id': 2657915,
'name': 'libbarcode-datamatrix-perl',
'revision_id': None,
'version': '0.10-1'
},
'buster/main/0.10-1': {
'id': 303483,
'name': 'libbarcode-datamatrix-perl',
'revision_id': '04e9b7588dc297f53f81da49b8cb9e5184f29f69',
'version': '0.10-1'
},
'unstable/main/0.10-1': {
'id': 302186,
'name': 'libbarcode-datamatrix-perl',
'revision_id': '04e9b7588dc297f53f81da49b8cb9e5184f29f69',
'version': '0.10-1'
}
}

Event Timeline

Note:
the 'id' entries referenced are as far as i know the identifier within the lister db (package table i suppose)
It's no longer used in the loader though

indeed:

                                                                                                                         files                                                                                                                                                                                                                                                                                                                                                                
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 {"libbarcode-datamatrix-perl_0.10-1.dsc": {"name": "libbarcode-datamatrix-perl_0.10-1.dsc", "size": 2202, "md5sum": "d714b9ed894162b6cc73c5cd44a4abbb", "sha256": "b480032c31758d44ba87b291ebe9400bb79305dad7ffdb8860c2caacb1f3472d"}, "libbarcode-datamatrix-perl_0.10.orig.tar.gz": {"name": "libbarcode-datamatrix-perl_0.10.orig.tar.gz", "size": 50161, "md5sum": "fce102fc4126aa7d1eed3a61edf99b06", "sha256": "e1381e83afa549c3143cab53bd7e902d75757d312b0a223fc6b2df9bdfa8d4d2"}, "libbarcode-datamatrix-perl_0.10-1.debian.tar.xz": {"name": "libbarcode-datamatrix-perl_0.10-1.debian.tar.xz", "size": 1712, "md5sum": "30bd8e44db00610333af39ccd0805110", "sha256": "2ad26b045a4f01e9866b2a808faaadc68104f7246e267b4be0df82a87bc547fb"}}
 {"libbarcode-datamatrix-perl_0.10-1.dsc": {"name": "libbarcode-datamatrix-perl_0.10-1.dsc", "size": 2202, "md5sum": "d714b9ed894162b6cc73c5cd44a4abbb", "sha256": "b480032c31758d44ba87b291ebe9400bb79305dad7ffdb8860c2caacb1f3472d"}, "libbarcode-datamatrix-perl_0.10.orig.tar.gz": {"name": "libbarcode-datamatrix-perl_0.10.orig.tar.gz", "size": 50161, "md5sum": "fce102fc4126aa7d1eed3a61edf99b06", "sha256": "e1381e83afa549c3143cab53bd7e902d75757d312b0a223fc6b2df9bdfa8d4d2"}, "libbarcode-datamatrix-perl_0.10-1.debian.tar.xz": {"name": "libbarcode-datamatrix-perl_0.10-1.debian.tar.xz", "size": 1712, "md5sum": "30bd8e44db00610333af39ccd0805110", "sha256": "2ad26b045a4f01e9866b2a808faaadc68104f7246e267b4be0df82a87bc547fb"}}
(2 rows)

And the lister seems to not send the files in the case where it was already sent before (which makes sense with what i understood of the old loader).
But that's no longer what we want for the new debian loader...