diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-12-06 17:44:57 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-12-06 17:44:57 +0100 |
commit | b954f426b724b9d4d0dfa4f1a4185882ec6c2bc2 (patch) | |
tree | d7530053b87a21d36ea3ce7084e3237c35dc2037 /bin | |
parent | 9838c3f6ea44d328e5d571d5ccf201bf5ed9f167 (diff) | |
download | jenkins.debian.net-b954f426b724b9d4d0dfa4f1a4185882ec6c2bc2.tar.xz |
chroot-installation: fix prepare_install_binary_packages() to correctly install all+only available packages from a given source package
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chroot-installation.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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 |