From b954f426b724b9d4d0dfa4f1a4185882ec6c2bc2 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 6 Dec 2014 17:44:57 +0100 Subject: chroot-installation: fix prepare_install_binary_packages() to correctly install all+only available packages from a given source package --- bin/chroot-installation.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index e0ecb524..ffb2fa9c 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -72,7 +72,12 @@ prepare_install_binary_packages() { cat >> $CTMPFILE <<-EOF $SCRIPT_HEADER set -x -apt-cache showsrc $@ | grep ^Binary: | sed -s "s#Binary:##g" | tr -d , | sed -s "s# #\n#g" | sort -u | xargs apt-get install -y +apt-get install -y dctrl-tools +PACKAGES="" +for PKG in $@ ; do + PACKAGES="\$PACKAGES \$(grep-dctrl -S \$PKG /var/lib/apt/lists/*Packages | grep ^Package: | sed -s "s#Package: ##g" | xargs -r echo)" +done +apt-get install -y \$PACKAGES apt-get clean set +x EOF -- cgit v1.2.3-70-g09d2