From adf712fc4a1037f68d19aa30c0f010d3e1588153 Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Sat, 2 Jan 2010 15:59:41 +0100 Subject: 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. --- pbuilder-updatebuildenv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pbuilder-updatebuildenv') diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv index 25bcf05..1913efc 100755 --- a/pbuilder-updatebuildenv +++ b/pbuilder-updatebuildenv @@ -44,11 +44,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 -- cgit v1.2.3