From bee2c543671251097eabdd124c62396edca82e87 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Fri, 19 Jun 2009 23:25:45 +0900 Subject: Do not error out on etch apt for apt-get autoremove (closes: #531454) Just ignore the error for now. '|| true' should be removed after etch is no longer supported. There are other solutions like checking for versions, but I don't like the complexity required just to support an old version. --- pbuilder-updatebuildenv | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv index 2cbc8a9..92ccd0f 100755 --- a/pbuilder-updatebuildenv +++ b/pbuilder-updatebuildenv @@ -45,7 +45,10 @@ recover_aptcache $TRAP saveaptcache_umountproc_cleanbuildplace_trap exit sighup $CHROOTEXEC /usr/bin/apt-get -y --force-yes "${FORCE_CONFNEW[@]}" dist-upgrade -$CHROOTEXEC /usr/bin/apt-get -y --force-yes autoremove +# autoremove: Ignore error in case of etch because apt in etch doesn't +# support autoremove. TODO: Do not ignore error when etch is no longer +# supported. +$CHROOTEXEC /usr/bin/apt-get -y --force-yes autoremove || true $CHROOTEXEC /usr/bin/apt-get -y --force-yes install build-essential dpkg-dev apt aptitude $EXTRAPACKAGES save_aptcache -- cgit v1.2.3