Remove chroot-only configured apt sources in chroot_archives remove.

If an archive is configured with *.chroot extension remove it when
deconfiguring chroot/etc/apt/sources.list.d directory.
This commit is contained in:
Jan Blunck 2013-09-17 13:28:00 +02:00
parent 3b332c3788
commit 4d9c77d20e
1 changed files with 9 additions and 0 deletions

View File

@ -677,6 +677,15 @@ EOF
rm -f chroot/etc/apt/conf.d/*
rm -f chroot/etc/apt/preferences.d/*
# Removing chroot-only apt sources
for FILE in config/archives/*.list.chroot
do
if [ -e "${FILE}" ]
then
rm -f "chroot/etc/apt/sources.list.d/$(basename ${FILE} .chroot)"
fi
done
# Adding local apt sources (binary)
for FILE in config/archives/*.list config/archives/*.list.binary
do