From c8835a6149872d438bfd25af52e2d48435f6fe7c Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Tue, 24 May 2022 04:16:11 +0200 Subject: [PATCH] coverage.sh: make sure archives we copied into /var/cache/apt/archives are not deleted --- coverage.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/coverage.sh b/coverage.sh index cd24d29..b8afbf6 100755 --- a/coverage.sh +++ b/coverage.sh @@ -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