#651286 devscripts: getbuildlogs fails to fetch logs for versions with '+'

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Pino Toscano
Date:
2025-11-11 08:25:03 UTC
Severity:
normal
Tags:
#651286#5
Date:
2011-12-07 12:30:03 UTC
From:
To:
Package: devscripts
Version: 2.11.2
Severity: normal

Hi,

it looks like getbuildlogs cannot download build logs for versions
containing a '+' character, eg binNMUs.

$ getbuildlog php5 '5.3.8.0-1+b1' i386
this does nothing, and $? = 0, but then
$ wget 'https://buildd.debian.org/status/fetch.php?pkg=php5&arch=i386&ver=5.3.8.0-1%2Bb1&stamp=1321183039&raw=1'
works

Thanks,

#651286#10
Date:
2011-12-07 20:52:29 UTC
From:
To:
It can, if asked in the way it expects...

The second argument there is "version-pattern".  getbuildlog(1) says:

        The version and architecture patterns are interpreted as
        extended regular expressions as described in grep(1).

so you want:

        $ getbuildlog php5 '5\.3\.8\.0-1\+b1' i386

Admittedly the --help output doesn't explicitly indicate that the
patterns are regular expressions, but each of the examples given does
rather imply that fact.

Regards,

Adam

#651286#15
Date:
2011-12-10 10:03:55 UTC
From:
To:
Alle mercoledì 7 dicembre 2011, Adam D. Barratt ha scritto:

I see.
I admit I just read the --help output, and initially didn't pay much
attention to the escaping of periods (especially as specifying a precise
version so far worked, given that periods "represented themselves" in
regexps).

May I propose to add a --exact/--string or similar switch to handle the
"version-pattern" as a fixed string? This could also be useful for
scripts, so they can pass the version without manually have to escape
it.

#651286#20
Date:
2024-02-03 17:50:16 UTC
From:
To:
Can this be closed? It's been a decade.
#651286#25
Date:
2024-11-26 11:07:28 UTC
From:
To:
The problem here is that
https://buildd.debian.org/status/logs.php?pkg=linux&ver=6.11.5-1%7Ebpo12%2B1&arch=amd64
tells you to use the following command:

It does not work because of the un-escaped `+` at the end of the version
string.
--- /etc/devscripts.conf --- Empty.
--- ~/.devscripts --- Not present