#1120313 devscripts: [getbuildlog] silently fails if package name contains +

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Emanuele Rocca
Date:
2026-09-18 22:21:02 UTC
Severity:
normal
Tags:
#1120313#5
Date:
2025-11-07 13:52:00 UTC
From:
To:
If the package name passed to getbuildlog includes a + sign, the program
silently does nothing. For example:

$ getbuildlog bonnie++ last arm64
$

With package names that don't include a + sign it works fine instead:

$ getbuildlog hello last arm64
--2025-11-07 14:50:12--  https://buildd.debian.org/status/fetch.php?pkg=hello&arch=arm64&ver=2.10-5&stamp=1744800322&raw=1
Resolving buildd.debian.org (buildd.debian.org)... 2607:f8f0:614:1::1274:60, 209.87.16.60
Connecting to buildd.debian.org (buildd.debian.org)|2607:f8f0:614:1::1274:60|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘hello_2.10-5_arm64.log’

hello_2.10-5_arm64.log                [   <=>                                                        ] 118.81K   270KB/s    in 0.4s

2025-11-07 14:50:13 (270 KB/s) - ‘hello_2.10-5_arm64.log’ saved [121666]

#1120313#10
Date:
2025-11-07 14:12:16 UTC
From:
To:
control: tags -1 + help newcomer
thanks
[...]

thanks for filing this bug report! A patch fixing it would be much
appreciated. There's absolutly no need not to provide one just because
you are no newcomer! ;) Still tagging accordingly cause I suspect the
patch should be fairly simple.

#1120313#17
Date:
2025-11-11 04:01:57 UTC
From:
To:
This is basically a duplicate of #651286 and #681779.

The passed arguments are all regexs, and you need to escape special
chars like +.

To improve on this, I asked buildd.d.o to provide an API, see
#1116273.

Chris

#1120313#22
Date:
2025-11-11 08:22:56 UTC
From:
To:
merge 1120313 651286
thanks

nice find, thanks! 681779 is definitly related *and* has a patch. Can someone
affected please try it?

yup.

*g* & thanks for that!

#1120313#31
Date:
2025-11-11 12:40:14 UTC
From:
To:
Hello Holger and Chris,
but it would not address the escaping issues themselves: 1120313
(package name) and 651286 (version).

In any case the patch does not seem to work:

$ getbuildlog hello last arm64
$ echo $?
1

Without the patch:

$ getbuildlog hello last arm64
--2025-11-11 13:36:25--  https://buildd.debian.org/status/fetch.php?pkg=hello&arch=arm64&ver=2.10-5&stamp=1744800322&raw=1
Resolving buildd.debian.org (buildd.debian.org)... 2607:f8f0:614:1::1274:60, 209.87.16.60
Connecting to buildd.debian.org (buildd.debian.org)|2607:f8f0:614:1::1274:60|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘hello_2.10-5_arm64.log’

hello_2.10-5_arm64.log                [   <=>                                                        ] 118.81K   264KB/s    in 0.4s

2025-11-11 13:36:26 (264 KB/s) - ‘hello_2.10-5_arm64.log’ saved [121666]

#1120313#36
Date:
2026-08-16 08:06:25 UTC
From:
To:
Hello,

Bug #1120313 in devscripts reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian/devscripts/-/commit/cb1a022c8515f4ac0264fc503ab4a88092a265e3
------------------------------------------------------------------------
getbuildlog: URL-encode package name when fetching the log index (Closes: #1120313)

(cherry picked from commit 13117358a4df9e5090a605c39776e4279c9647db)
Signed-off-by: Holger Levsen <holger@layer-acht.org>
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1120313

#1120313#43
Date:
2026-09-18 22:19:32 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
devscripts, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1120313@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Benjamin Drung <bdrung@debian.org> (supplier of updated devscripts package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 18 Sep 2026 23:27:22 +0200
Source: devscripts
Built-For-Profiles: derivative.ubuntu noudeb
Architecture: source
Version: 2.26.12
Distribution: unstable
Urgency: medium
Maintainer: Devscripts Maintainers <devscripts@packages.debian.org>
Changed-By: Benjamin Drung <bdrung@debian.org>
Closes: 1120313 1145335
Launchpad-Bugs-Fixed: 1143124 2162372
Changes:
 devscripts (2.26.12) unstable; urgency=medium
 .
   [ Yadnyesh Kolte ]
   * getbuildlog:
     - URL-encode package name when fetching the log index (Closes: #1120313)
     - chomp versions before sorting so 'last' picks the newest
 .
   [ Jochen Sprickerhof ]
   * debootsnap: add missing space
   * getbuildlog: support curl as a wget alternative
   * Document curl alternative for getbuildlog
 .
   [ Jeremy Sowden ]
   * uscan: fix use of --download-current-version with "Version-Constraint: same"
 .
   [ Serge Schneider ]
   * debrebuild: join env-var list in mmdebstrap chrooted-customize-hook.
     Thanks to Agustin Martin Domingo <agmartin@debian.org> (Closes: #1145335)
 .
   [ Yadd ]
   * uscan: fix metacpan template
 .
   [ Finn Rayk Gartner ]
   * Swap lzip with plzip and provide lzip-decompressor as a fallback
   * Update uscan.pl docs
   * rmadison: Factor out the HTTP client and URL handling
   * rmadison: Use Launchpad API for Ubuntu (LP: #2162372, #1143124)
   * rmadison: Add -g/-G support for LP implementation
 .
   [ Benjamin Drung ]
   * Bump Standards-Version to 4.7.4
   * Switch to debhelper 14
   * Wrap long line in bts bash completion
   * Override very-long-line-length-in-source-file for cran test case
Checksums-Sha1:
 85c075fd5c1ec7381dbb0a70300399ecaff11a18 3585 devscripts_2.26.12.dsc
 da84a48f8853487fc111dcc51d09a34ea6689f5a 1135984 devscripts_2.26.12.tar.xz
 da0630b9546dbdb3cb583e13a01956df6af4f556 20269 devscripts_2.26.12_source.buildinfo
Checksums-Sha256:
 931b77a173bed4f9e236e5069a26da681c86ac656e7bfc7dcdd8cb23b152fc02 3585 devscripts_2.26.12.dsc
 5d276d42d3b78827f975cf33aefee13c70ce549c4a7479f191fc6899a5692642 1135984 devscripts_2.26.12.tar.xz
 282c693456d0f4f1ce3a350cd814b2d0752ab2ab4926fa4effaf50793624cdaa 20269 devscripts_2.26.12_source.buildinfo
Files:
 f7c3a39de25d915d109362b5c3d6d966 3585 devel optional devscripts_2.26.12.dsc
 08a0ad5be9bb86132d87497266267776 1135984 devel optional devscripts_2.26.12.tar.xz
 83e513050ac3f35ccf0d1f97303c7152 20269 devel optional devscripts_2.26.12_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEpi0s+9ULm1vzYNVLFZ61xO/Id0wFAmqts0YACgkQFZ61xO/I
d0zvrRAApO8EQcflgOsFQJTXQpk7ny1VqRbrS42a3Pylcy2ovw7iIbFlmCYtWxUf
M9ip4RRHarJ1rYv57gmxDxOPHjhJj4Rg9uQWUIn9sxjQKV16bxtqLWrWlbRZbBQs
aU+3/6BuFCc/wvTM9FjecFXZ5HJyBaNKsrw1++31u089o98hQCrRM1R5mJ7+dsQl
hdaeejLov8NrX5L9bRMXYn/r4rIUoxRn0pjumlHeiTho2VfVetbLYTwVNZY2QcOM
R1XPdGHDBeL30lE76zssPn+ij5wggeA3xyFdGcgnzOy0gJUKHIJOxv3NqA925kCk
Dkksbom25ar1eSLDp84gjUAB/iBCbqlIO8ttURWJ/le4vY9CKKTGH9HaJ7AwYS8/
AJ8Oa/46HBYG9jzdpwgpl+nbd+xzRsUBlHmgIWIGlpBmGJGNz8DELOneesoDkjhy
8siUPwcRrSPQspG9NGKQzkL2yZ+kNCD2cd739xZ4IWmSxrW9f5LBYMXrfqfmrTM9
X9oaUXnSAjKAHEATaSZOX3g2p/0OTgkW+rGbbilipvxlDk+OWMUyUTrVjLJbOe5R
UXJqRCgWwuijF81MVaWqygBmPucXKQMpJAHw8ale3tuWmgnoQzcHhCi1xRrzwT6t
W4uuEitJuFVLFbB1zJoJ9tEfkjtmua8KbRSgrLym+K8j5Id11+M=
=C2Xs
-----END PGP SIGNATURE-----