Also using sources.list snipplets for local packages just as for the other repositories (Closes: #569619).

This commit is contained in:
Daniel Baumann 2010-02-14 16:00:48 +01:00
parent 40c5cf8d4a
commit 19e9cf8331
1 changed files with 3 additions and 4 deletions

View File

@ -218,10 +218,8 @@ case "${1}" in
fi
fi
# Add to sources.list
echo "" >> chroot/etc/apt/sources.list
echo "# Local packages" >> chroot/etc/apt/sources.list
echo "deb file:/root/local-packages ./" >> chroot/etc/apt/sources.list
# Add to sources.list.d
echo "deb file:/root/local-packages ./" > chroot/etc/apt/sources.list.d/local-packages.list
# Removing depends
Remove_package
@ -448,6 +446,7 @@ case "${1}" in
fi
# Remove local package repository
rm -f chroot/etc/apt/sources.list.d/local-packages.list
rm -rf chroot/root/local-packages
# Remove local packages key if it exists