aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-createbuildenv
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-02 15:23:39 +0100
committerLoïc Minier <lool@dooz.org>2010-01-02 15:23:39 +0100
commit026411d571d2955e295eaa741c8a368d66730efc (patch)
tree4b693be7206f00020855a871b4052d185d793ad6 /pbuilder-createbuildenv
parent5e8cf7baa99355385741fe47716c5c581f7ed8c8 (diff)
downloadpbuilder-026411d571d2955e295eaa741c8a368d66730efc.tar
pbuilder-026411d571d2955e295eaa741c8a368d66730efc.tar.gz
Add aptitude if pbuilder-satisfydepends uses it
Install aptitude (with no possibility to override this) if pbuilder-satisfydepends uses it; closes: 539578.
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-xpbuilder-createbuildenv7
1 files changed, 7 insertions, 0 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv
index 48b0c05..1fc3f15 100755
--- a/pbuilder-createbuildenv
+++ b/pbuilder-createbuildenv
@@ -91,6 +91,13 @@ if [ -n "$REMOVEPACKAGES" ]; then
fi
recover_aptcache
$CHROOTEXEC /usr/bin/apt-get -q -y --force-yes "${FORCE_CONFNEW[@]}" dist-upgrade
+
+case `readlink -e /usr/lib/pbuilder/pbuilder-satisfydepends` in
+ *-aptitude)
+ EXTRAPACKAGES="$EXTRAPACKAGES aptitude"
+ ;;
+esac
+
$CHROOTEXEC /usr/bin/apt-get -q -y --force-yes install build-essential dpkg-dev $EXTRAPACKAGES
save_aptcache