diff options
-rw-r--r-- | pbuilder-satisfydepends-gdebi | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pbuilder-satisfydepends-gdebi b/pbuilder-satisfydepends-gdebi index 5dbe433..6e3ae06 100644 --- a/pbuilder-satisfydepends-gdebi +++ b/pbuilder-satisfydepends-gdebi @@ -24,7 +24,14 @@ set -e function checkbuilddep_internal () { $CHROOTEXEC apt-get -y --force-yes install gdebi-core - INSTALL=$($CHROOTEXEC /usr/bin/gdebi --quiet --apt-line $DEBIAN_CONTROL) + NO_RECOMMENDS="" + if VERSION=$($CHROOTEXEC /usr/bin/gdebi --version 2>/dev/null); then + if dpkg --compare-versions $VERSION ge 0.3.9; then + NO_RECOMMENDS="-o APT::Install-Recommends=false" + fi + fi + + INSTALL=$($CHROOTEXEC /usr/bin/gdebi --quiet --apt-line $NO_RECOMMENDS $DEBIAN_CONTROL) $CHROOTEXEC /usr/bin/apt-get install -y --force-yes $INSTALL } |