Bug#655297: [examples/rebuild]: buildall executes dget with wrong url

Aron Xu happyaron.xu at gmail.com
Tue Jan 10 05:53:36 UTC 2012


Package: pbuilder
Severity: normal
Tags: patch
Version: 0.205

When I was trying to rebuild some packages of Sid from archive, I
tried to use examples/rebuild/buildall and then resulted into many
failures like this:

dget: curl aisleriot_1:3.2.2-1.dsc
http://mirrors/debian/pool/main/a/aisleriot/aisleriot_1:3.2.2-1.dsc
failed

This was caused by having urls with ":" inside. The following patch
can fix the problem.

--- /usr/share/doc/pbuilder/examples/rebuild/buildall   2010-06-29
09:33:04.000000000 +0800
+++ buildall    2012-01-10 13:52:22.867288056 +0800
@@ -34,7 +34,7 @@
     G=$(grep-dctrl -S -n -s Directory,Version $PACKAGE ../../Sources)
     set -- $G
     DIR=$1 VER=$2
-    dget -x ${MIRROR}/debian/${DIR}/${PACKAGE}_${VER}.dsc > /dev/null
2> $LOGDIR/.$PACKAGE
+    dget -x ${MIRROR}/debian/${DIR}/${PACKAGE}_${VER##:}.dsc >
/dev/null 2> $LOGDIR/.$PACKAGE

     cd $(find . -type d ! -name .)
     mkdir -p $BUILDDIR/$PACKAGE/result

-- 
Regards,
Aron Xu





More information about the Pbuilder-maint mailing list