debian: Add md5 sum fallback when sha* checksum is missing in metadata
In order to check successful download of a package file, the debian loader will compare sha256 or sha1 checksum of the file with the one located in debian dsc file.
However for old debian-based distributions (some ubuntu old releases for instance) the only available checksum in the dsc file is a md5 sum.
So add a fallback to use md5 sum to check successful download when sha* checksum is missing in the dsc file.
Related to swh/infra/sysadm-environment#2400 (closed)
Migrated from D6750 (view on Phabricator)
Merge request reports
Activity
Build is green
Patch application report for D6750 (id=24511)
Rebasing onto 5d22455c...
Current branch diff-target is up to date.
Changes applied before test
commit 17e441d0100be6e2d362c83c60ba1908304fd2a1 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Dec 6 14:29:32 2021 +0100 debian: Add md5 sum fallback when sha* checksum is missing in metadata In order to check successful download of a package file, the debian loader will compare sha256 or sha1 checksum of the file with the one located in debian dsc file. However for old debian-based distributions (some ubuntu old releases for instance) the only available checksum in the dsc file is a md5 sum. So add a fallback to use md5 sum to check successful download when sha* checksum is missing in the dsc file. Related to swh/infra/sysadm-environment#2400
See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/645/ for more details.
Some references in the commit message have been migrated:
- T2400 is now swh/infra/sysadm-environment#2400 (closed)
Build is green
Patch application report for D6750 (id=24528)
Rebasing onto 89f5ccc7...
Current branch diff-target is up to date.
Changes applied before test
commit 2d9e93a2f246011f5e79e5a4c6e5c66284eb4bce Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Dec 6 14:29:32 2021 +0100 debian: Add md5 sum fallback when sha* checksum is missing in metadata In order to check successful download of a package file, the debian loader will compare sha256 or sha1 checksum of the file with the one located in debian dsc file. However for old debian-based distributions (some ubuntu old releases for instance) the only available checksum in the dsc file is a md5 sum. So add a fallback to use md5 sum to check successful download when sha* checksum is missing in the dsc file. Related to swh/infra/sysadm-environment#2400
See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/648/ for more details.
mentioned in merge request swh-model!206 (closed)