coverage.sh: make sure archives we copied into /var/cache/apt/archives are not deleted

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-05-24 04:16:11 +02:00
parent dc8b09ed50
commit c8835a6149
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -3088,6 +3088,7 @@ $CMD \$include --mode=$defaultmode --variant=$variant --skip=download/empty \
--setup-hook='mkdir -p "\$1"/var/cache/apt/archives/' \
--setup-hook='sync-in "'"\$tmpdir"'" /var/cache/apt/archives/' \
--setup-hook='chmod 0755 "\$1"/var/cache/apt/archives/' \
--customize-hook='find "'"\$tmpdir"'" -type f -exec md5sum "{}" \; | sed "s|"'"\$tmpdir"'"|\$1/var/cache/apt/archives|" | md5sum --check' \
$DEFAULT_DIST - $mirror > test2.tar
cmp orig.tar test2.tar
rm "\$tmpdir"/*.deb orig.tar test1.tar test2.tar