diff options
author | Loïc Minier <lool@dooz.org> | 2009-12-12 15:10:02 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2009-12-12 15:10:02 +0100 |
commit | 070f8c798b9b2d98ef98a8407b8812ce9ab745ad (patch) | |
tree | b0fe176b2158c6681ee4c7eeac6a182cf15cdf0e /pbuilder-satisfydepends-gdebi | |
parent | 9252a478b47da970876cd0c827b100ba112395cd (diff) | |
download | pbuilder-070f8c798b9b2d98ef98a8407b8812ce9ab745ad.tar pbuilder-070f8c798b9b2d98ef98a8407b8812ce9ab745ad.tar.gz |
Copy .dsc in chroot before calling gdebi; #472407
Copy .dsc in chroot before calling gdebi; closes: #472407
Diffstat (limited to 'pbuilder-satisfydepends-gdebi')
-rw-r--r-- | pbuilder-satisfydepends-gdebi | 8 |
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 } |