From 70cf6b39df85cdd3f71577a06d7679a47bdff830 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 25 Mar 2019 14:49:03 +0100 Subject: [PATCH] make_mirror.sh: list remaining files if /var/cache/apt/archives/ is not empty --- make_mirror.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make_mirror.sh b/make_mirror.sh index 84106e8..49523b8 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -203,7 +203,8 @@ END comm -23 "$rootdir/oldaptnames" "$rootdir/newaptnames" | xargs --delimiter="\n" --no-run-if-empty rm # now the apt cache should be empty if [ ! -z "$(ls -1qA "$rootdir/var/cache/apt/archives/")" ]; then - echo "/var/cache/apt/archives not empty" + echo "$rootdir/var/cache/apt/archives not empty:" + ls -la "$rootdir/var/cache/apt/archives/" exit 1 fi