summaryrefslogtreecommitdiff
path: root/helpers/lh_source_debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-10-28 16:44:06 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:43 +0100
commit1c1e7db6c44d639fd51ee23061087c7d14b6ef6b (patch)
treee20b0cfa3a45140a39be0cadf45410eab5cc22e7 /helpers/lh_source_debian
parent6696b019fe03a371d69c50a1ef82223e4bb364a7 (diff)
downloadlive-build-1c1e7db6c44d639fd51ee23061087c7d14b6ef6b.zip
live-build-1c1e7db6c44d639fd51ee23061087c7d14b6ef6b.tar.gz
Generalizing internal Chroot(); by requiring its first argument to be the chroot directory.
Diffstat (limited to 'helpers/lh_source_debian')
-rwxr-xr-xhelpers/lh_source_debian6
1 files changed, 3 insertions, 3 deletions
diff --git a/helpers/lh_source_debian b/helpers/lh_source_debian
index 43e49e9..14cf531 100755
--- a/helpers/lh_source_debian
+++ b/helpers/lh_source_debian
@@ -54,7 +54,7 @@ then
fi
# Download sources
-Chroot "dpkg --get-selections" | awk '{ print $1 }' > source-selection.txt
+Chroot chroot "dpkg --get-selections" | awk '{ print $1 }' > source-selection.txt
cat >> source-selection.txt << EOF
${LH_BOOTLOADER}
@@ -107,7 +107,7 @@ MISSING=""
grep . source-selection.txt | \
while read PACKAGE
do
- if ! Chroot "apt-get ${APT_OPTIONS} --download-only source ${PACKAGE}"
+ if ! Chroot chroot "apt-get ${APT_OPTIONS} --download-only source ${PACKAGE}"
then
MISSING="${MISSING} ${PACKAGE}"
fi
@@ -123,7 +123,7 @@ EOF
for PACKAGE in ${MISSING}
do
- Chroot "dpkg -l ${PACKAGE}" | tail -n1 >> source/missing-source.txt
+ Chroot chroot "dpkg -l ${PACKAGE}" | tail -n1 >> source/missing-source.txt
done
fi