Bug#680760: [getbuildlog] Fails to fetch versions which contain +

Simon Ruderich simon at ruderich.org
Sun Jul 8 13:40:25 UTC 2012


Package: devscripts
Version: 2.12.0
Severity: normal
Tags: patch

Dear Maintainer,

getbuildlog fails to fetch versions which contain +, e.g.

    $ getbuildlog mpg123 1.14.2+svn20120622-1

The following patch should fix this issue:

--- /usr/bin/getbuildlog	2012-06-30 17:20:16.000000000 +0200
+++ /usr/bin/getbuildlog	2012-07-08 15:35:24.000000000 +0200
@@ -82,6 +89,9 @@
 elif [ "$VERSION" = "last-all" ]; then
     GET_LAST_VERSION=all
     VERSION=[:~+.[:alnum:]-]+
+# We must escape + in the package version.
+else
+    VERSION=`echo "$VERSION" | sed -e 's/\+/\\\+/g'`
 fi
 
 PATTERN="fetch\.(cgi|php)\?pkg=$ESCAPED_PACKAGE&arch=$ARCH&ver=$VERSION&\

Regards,
Simon
-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20120708/7777a09b/attachment.pgp>


More information about the devscripts-devel mailing list