From b214d7412926c9e0abd9e32116206a55d07445fc Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 5 Mar 2023 11:07:09 +0100 Subject: [PATCH] make_mirror.sh: output contents of sources.list and preferences.d for debugging --- make_mirror.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/make_mirror.sh b/make_mirror.sh index b2624b3..d420066 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -198,6 +198,13 @@ END done fi + echo "creating mirror for $dist" >&2 + for f in /etc/apt/sources.list /etc/apt/sources.list.d/* /etc/apt/preferences.d/*; do + [ -e "$rootdir/$f" ] || continue + echo "contents of $f:" >&2 + cat "$rootdir/$f" >&2 + done + APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get update pkgs=$(APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get indextargets \