Package: git-buildpackage
Version: 0.9.29
Severity: important
X-Debbugs-Cc: [email protected]
Here's what I have tried so far:
[pq]
time-machine = 2
# or
time-machine=2
# or even the default value
time-machine = 1
In each of those cases `gbp pq import` produces the following traceback:
Traceback (most recent call last):
File "/usr/bin/gbp", line 149, in <module>
sys.exit(supercommand())
File "/usr/bin/gbp", line 145, in supercommand
return module.main(args)
File "/usr/lib/python3/dist-packages/gbp/scripts/pq.py", line 463, in main
(options, args) = parse_args(argv)
File "/usr/lib/python3/dist-packages/gbp/scripts/pq.py", line 454, in
parse_args
parser = build_parser(argv[0])
File "/usr/lib/python3/dist-packages/gbp/scripts/pq.py", line 436, in
build_parser
parser.add_config_file_option(option_name="time-machine",
dest="time_machine", type="int")
File "/usr/lib/python3/dist-packages/gbp/config.py", line 82, in _decorator
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/gbp/config.py", line 686, in
add_config_file_option
help=help % self.config, **kwargs)
TypeError: %d format: a real number is required, not str
It looks like the value is being treated as a string.
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-18-amd64 (SMP w/1 CPU thread)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages git-buildpackage depends on:
ii devscripts 2.22.2
ii git 1:2.38.1-1
ii man-db 2.11.0-1+b1
ii python3 3.10.6-1
ii python3-dateutil 2.8.2-1
ii python3-pkg-resources 65.5.0-1
ii python3-yaml 6.0-3
ii sensible-utils 0.0.17
Versions of packages git-buildpackage recommends:
ii pbuilder 0.231
ii pristine-tar 1.49
ii python3-requests 2.27.1+dfsg-1
Versions of packages git-buildpackage suggests:
pn python3-notify2 <none>
ii sudo 1.9.11p3-2
ii unzip 6.0-27
-- no debconf information