The command `requestsync --email -d sid <package> <target>` fails with
the following stacktrace:
```
Traceback (most recent call last):
File "/usr/bin/requestsync", line 402, in <module>
main()
File "/usr/bin/requestsync", line 225, in main
ubuntu_srcpkg = get_ubuntu_srcpkg(srcpkg, args.release, "Proposed")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: get_ubuntu_srcpkg() takes 2 positional arguments but 3 were given
```
LP: #2115990
Fixes: 5eb960dd3fe57daa16d8cee8cefee035cebb8e5d
pylint complains:
```
requestsync:156:34: E0606: Possibly using variable 'bug_mail_domain' before assignment (possibly-used-before-assignment)
requestsync:217:27: E0606: Possibly using variable 'Distribution' before assignment (possibly-used-before-assignment)
requestsync:380:8: E0606: Possibly using variable 'post_bug' before assignment (possibly-used-before-assignment)
```
These errors are false positives. So silence them. The perfect solution
would be to restructure the code.
pylint complains about C0209: Formatting a regular string which could be
a f-string (consider-using-f-string)
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
pylint complains about W1201: Use lazy % formatting in logging functions
(logging-not-lazy) and W1203: Use lazy % formatting in logging functions
(logging-fstring-interpolation).
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
Python logging by default sends all output to stderr, but that's not what
normal programs usually do and is not expected for these scripts.
Change the ubuntutools.getLogger() method to return a logger with handlers
correctly set up to send INFO level (or lower) logs to stdout and WARNING
level (or higher; technically INFO+1 level or higher) logs to stderr.
This results in normally logged output going to stdout and warnings/errors
going to stderr, as expected.
instead of debian.debian_support.Version, use ubuntutools version,
which extends it and adds the strip_epoch() function which is
needed to convert full version string to version used in filenames
- reverse-depends: Replaces reverse-build-depends. Uses an UbuntuWire
webservice for determining all reverse(-build)-dependencies for a
package. (LP: #696373)
- requestbackport: Files a backport request bug report, including a full
testing checklist.
* Don't allow boilerplate prompts through in submittodebian and requestsync
(LP: #887336)