make_mirror.sh: output contents of sources.list and preferences.d for debugging

This commit is contained in:
Johannes Schauer Marin Rodrigues 2023-03-05 11:07:09 +01:00
parent c3bcc7b04a
commit b214d74129
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -198,6 +198,13 @@ END
done done
fi 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 APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get update
pkgs=$(APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get indextargets \ pkgs=$(APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get indextargets \