#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-08-16 08:07: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