Bug#531454: [PATCH] pbuilder 0.188 breaks --update in etch chroots
Peter Pentchev
roam at ringlet.net
Tue Jun 16 14:29:22 UTC 2009
Hi,
My workplace still needs support for Etch, too, although we are
planning a transition to Lenny soon. The patch that will let
pbuilder work for Etch chroots is really quite simple; what do
people think about it? :)
If the patch gets mangled by the mailing list or the BTS, it may
also be found at
http://devel.ringlet.net/devel/pbuilder/no-autoremove-on-etch.patch
Index: pbuilder-updatebuildenv
===================================================================
--- pbuilder-updatebuildenv (revision 3790)
+++ pbuilder-updatebuildenv (revision 3791)
@@ -45,7 +45,13 @@
$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
+aptver=`$CHROOTEXEC /usr/bin/dpkg-query -W -f '${Version}' apt`
+log "I: Obtained apt version $aptver"
+if [ -n "$aptver" ] && dpkg --compare-versions "$aptver" ge '0.7.6'; then
+ $CHROOTEXEC /usr/bin/apt-get -y --force-yes autoremove
+else
+ log "I: Skipping apt-get autoremove"
+fi
$CHROOTEXEC /usr/bin/apt-get -y --force-yes install build-essential dpkg-dev apt aptitude $EXTRAPACKAGES
save_aptcache
G'luck,
Peter
--
Peter Pentchev roam at ringlet.net roam at space.bg roam at FreeBSD.org
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
"yields falsehood, when appended to its quotation." yields falsehood, when appended to its quotation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20090616/fbecd9e7/attachment.pgp>
More information about the Pbuilder-maint
mailing list