Don't build up source package list inside chroot.

This commit is contained in:
Chris Lamb 2008-09-27 22:41:42 +01:00 committed by Daniel Baumann
parent ab1e4ce5a8
commit 7bc94cef99
2 changed files with 9 additions and 8 deletions

View File

@ -111,6 +111,7 @@ do
rm -f source*.tar
rm -f source*.tar.gz
rm -f source.list
rm -f source-selection.txt
rm -rf source

View File

@ -54,9 +54,9 @@ then
fi
# Download sources
Chroot "dpkg --get-selections" | awk '{ print $1 }' > chroot/root/dpkg-selection.txt
Chroot "dpkg --get-selections" | awk '{ print $1 }' > source-selection.txt
cat >> chroot/root/dpkg-selection.txt << EOF
cat >> source-selection.txt << EOF
${LH_BOOTLOADER}
live-helper
${LH_INITRAMFS}
@ -71,7 +71,7 @@ EOF
case "${LH_ARCHITECTURE}" in
amd64|i386)
cat >> chroot/root/dpkg-selection.txt << EOF
cat >> source-selection.txt << EOF
mtools
syslinux
grub
@ -79,22 +79,22 @@ EOF
if [ "${LH_MEMTEST}" != "disabled" ] && [ "${LH_MEMTEST}" != "none" ]
then
echo "${LH_MEMTEST}" >> chroot/root/dpkg-selection.txt
echo "${LH_MEMTEST}" >> source-selection.txt
fi
;;
powerpc)
echo "yaboot" >> chroot/root/dpkg-selection.txt
echo "yaboot" >> source-selection.txt
;;
silo)
echo "silo" >> chroot/root/dpkg-selection.txt
echo "silo" >> source-selection.txt
;;
esac
MISSING=""
grep . chroot/root/dpkg-selection.txt | \
grep . source-selection.txt | \
while read PACKAGE
do
if ! Chroot "apt-get ${APT_OPTIONS} --download-only source ${PACKAGE}"
@ -117,7 +117,7 @@ EOF
done
fi
rm -f chroot/root/dpkg-selection.txt
rm -f source-selection.txt
# Sort sources
for DSC in chroot/*.dsc