diff options
-rwxr-xr-x | pbuilder-createbuildenv | 6 | ||||
-rwxr-xr-x | pbuilder-updatebuildenv | 6 |
2 files changed, 10 insertions, 2 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 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 |