Instead of the old origin dict. That's what the debian loaders (old and new)
expect.
@douardda, in the end, there was only this discrepancy in the data structure
sent to the loader(s), as shown by the example:
{ 'url': 'deb://Debian/packages/wolf4sdl', # <- prior to this diff, this was a dict with keys {url, type} 'date': '2019-11-04T13:26:29.908746+00:00', 'packages': { 'stretch/contrib/1.7+svn262+dfsg1-4': { 'id': 145, 'name': 'wolf4sdl', 'files': { 'wolf4sdl_1.7+svn262+dfsg1-4.dsc': { 'uri': 'http://deb.debian.org/debian//pool/contrib/w/wolf4sdl/wolf4sdl_1.7+svn262+dfsg1-4.dsc', 'name': 'wolf4sdl_1.7+svn262+dfsg1-4.dsc', 'size': 2049, 'md5sum': '399d1bcf461dd9059fc79e73f3f54efc', 'sha256': '3d1e09e1b633ee3954f24279ddeabc1d2ad4d58f58b493d777478d58c28894a5' }, 'wolf4sdl_1.7+svn262+dfsg1.orig.tar.gz': { 'uri': 'http://deb.debian.org/debian//pool/contrib/w/wolf4sdl/wolf4sdl_1.7+svn262+dfsg1.orig.tar.gz', 'name': 'wolf4sdl_1.7+svn262+dfsg1.orig.tar.gz', 'size': 681684, 'md5sum': '854cbc8882d4761c230dd84be3e352c1', 'sha256': '00e49d840ad6537a7f461645363f2e54303902e4a414b1af8ecd90a2f800aafd' }, 'wolf4sdl_1.7+svn262+dfsg1-4.debian.tar.xz': { 'uri': 'http://deb.debian.org/debian//pool/contrib/w/wolf4sdl/wolf4sdl_1.7+svn262+dfsg1-4.debian.tar.xz', 'name': 'wolf4sdl_1.7+svn262+dfsg1-4.debian.tar.xz', 'size': 23212, 'md5sum': '7bf98fd34c30e4497ba197ada943bcc7', 'sha256': 'afb975f352debc5aba0232f4de01556db0e7c4bd31824e04381afcddf9e0b3d0' } }, 'version': '1.7+svn262+dfsg1-4', 'revision_id': None } } }
Note: Output from integration test run.