From 070f8c798b9b2d98ef98a8407b8812ce9ab745ad Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Sat, 12 Dec 2009 15:10:02 +0100 Subject: Copy .dsc in chroot before calling gdebi; #472407 Copy .dsc in chroot before calling gdebi; closes: #472407 --- pbuilder-satisfydepends-gdebi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pbuilder-satisfydepends-gdebi') diff --git a/pbuilder-satisfydepends-gdebi b/pbuilder-satisfydepends-gdebi index 6e3ae06..de33455 100644 --- a/pbuilder-satisfydepends-gdebi +++ b/pbuilder-satisfydepends-gdebi @@ -23,6 +23,9 @@ set -e function checkbuilddep_internal () { + local BUILD_DEP_DEB_DIR=/tmp/satisfydepends-gdebi + local BUILD_DEP_DEB_CONTROL="$BUILD_DEP_DEB_DIR/`basename "$DEBIAN_CONTROL"`" + $CHROOTEXEC apt-get -y --force-yes install gdebi-core NO_RECOMMENDS="" if VERSION=$($CHROOTEXEC /usr/bin/gdebi --version 2>/dev/null); then @@ -31,7 +34,10 @@ function checkbuilddep_internal () { fi fi - INSTALL=$($CHROOTEXEC /usr/bin/gdebi --quiet --apt-line $NO_RECOMMENDS $DEBIAN_CONTROL) + $CHROOTEXEC mkdir -p "$BUILD_DEP_DEB_DIR" + cat "$DEBIAN_CONTROL" | $CHROOTEXEC sh -c "cat >\"$BUILD_DEP_DEB_CONTROL\"" + + INSTALL=$($CHROOTEXEC /usr/bin/gdebi --quiet --apt-line $NO_RECOMMENDS $BUILD_DEP_DEB_CONTROL) $CHROOTEXEC /usr/bin/apt-get install -y --force-yes $INSTALL } -- cgit v1.2.3