aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-createbuildenv
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-02 15:59:41 +0100
committerLoïc Minier <lool@dooz.org>2010-01-02 15:59:41 +0100
commitadf712fc4a1037f68d19aa30c0f010d3e1588153 (patch)
tree91ea4cd7c573b5ca00501fdcbb935e97e757e97e /pbuilder-createbuildenv
parent047b1efbfe6f14a71432e27baa7c55fe7819e219 (diff)
downloadpbuilder-adf712fc4a1037f68d19aa30c0f010d3e1588153.tar
pbuilder-adf712fc4a1037f68d19aa30c0f010d3e1588153.tar.gz
Remove aptitude with apt-get install aptitude-
Remove aptitude with apt-get install aptitude- and note that we should use apt-get to remove REMOVEPACKAGES in the future.
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-xpbuilder-createbuildenv6
1 files changed, 5 insertions, 1 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv
index e187e7b..2cd7ff5 100755
--- a/pbuilder-createbuildenv
+++ b/pbuilder-createbuildenv
@@ -92,11 +92,15 @@ case "`readlink -e "$PBUILDERSATISFYDEPENDSCMD"`" in
EXTRAPACKAGES="$EXTRAPACKAGES aptitude"
;;
*)
- REMOVEPACKAGES="$REMOVEPACKAGES aptitude"
+ EXTRAPACKAGES="$EXTRAPACKAGES aptitude-"
;;
esac
if [ -n "$REMOVEPACKAGES" ]; then
+ # FIXME this wont work if the packages have some reverse dependencies;
+ # apt-get can also remove package, either with apt-get remove or purge, or
+ # with apt-get install name-of-pkg- (i.e. a minus sign after the package
+ # name)
$CHROOTEXEC /usr/bin/dpkg --purge $REMOVEPACKAGES
fi
recover_aptcache