aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pbuilder-satisfydepends-gdebi8
1 files changed, 7 insertions, 1 deletions
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
}