Benjamin Drung
909d945af4
Replace deprecated optparse with argparse
...
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 13:33:18 +01:00
Benjamin Drung
f6fde2e217
fix: Use lazy % formatting in logging functions
...
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>
2023-01-31 11:13:07 +01:00
Benjamin Drung
b1bc7e1cdc
Address pylint complaints
...
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 23:10:31 +01:00
Benjamin Drung
4e27045f49
style: Sort Python imports with isort
...
```
isort -l 99 --profile=black .
```
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 21:28:47 +01:00
Benjamin Drung
3354b526b5
style: Format Python code with black
...
```
PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .)
black -C -l 99 . $PYTHON_SCRIPTS
```
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 19:45:36 +01:00
Dan Streetman
0eeb93ee0c
logging: update ubuntutools.getLogger() to output to stdout/stderr correctly
...
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.
2021-02-02 06:25:12 -05:00
Dan Streetman
90e8fe81e1
replace ubuntutools.logger with standard python logging
2019-11-25 10:10:06 -05:00
Mattia Rizzolo
b76201967a
Merge branch 'reverse-depends-fixes' of git+ssh://git.launchpad.net/~ddstreet/ubuntu-dev-tools/+git/ubuntu-dev-tools
...
MR: https://code.launchpad.net/~ddstreet/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/372653
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2019-09-12 14:40:40 +02:00
Dan Streetman
ec14165262
reverse-depends fixes
...
move from optparse to argparse
fix typo in --recursive-deph param
use list comprehensions to fix/simplify del-during-iteration functions
2019-09-11 18:11:20 -04:00
Stefano Rivera
e5c90b986c
reverse-depends: Support Reverse-Testsuite-Triggers and Reverse-Build-Depends-Arch (LP: #1843614 )
2019-09-11 16:03:13 -03:00
Stefano Rivera
31d1ae269a
Port reverse-depends to Python 3
2019-09-04 19:24:44 -03:00
Mattia Rizzolo
257b0a8d67
reverse-depends: prevent crash when specifying a specific architecture.
...
Closes : #933018
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2019-08-05 13:28:59 +02:00
Mattia Rizzolo
6c404a3557
fix new flake8 issues
...
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2019-07-20 11:17:54 +02:00
Sahid Orentino Ferdjaoui
5cf0f000db
introduce ability to find reverse dependencies recursively
...
The change is introducing two options: --recursive and
--recursive-depth. So user will be able to print the full chain of
reverse-deps.
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-07-04 19:18:28 +02:00
Benjamin Drung
cc7170eccb
Fix all flake8 issues
2017-05-01 00:20:03 +02:00
Benjamin Drung
c2aa97dba2
Move devscripts.logger to ubuntutools.logger.
2013-03-19 00:18:02 +01:00
Stefano Rivera
343ac49b39
pbuilder-dist, pull-debian-source, pull-lp-source, requestsync,
...
reverse-depends, submittodebian, syncpackage:
Handle outdated distro-info data. Fall back to sane defaults where
possible.
2012-05-06 10:15:54 +02:00
Stefano Rivera
08754a3c71
* reverse-depends: Now that Debian is supported server-side:
...
- Convert Debian release aliases to codenames.
- Default to the devel release of the vendor distribution.
2012-02-08 12:06:32 +02:00
Stefano Rivera
35b742c1e8
s/progname/prog/
2011-11-15 12:58:04 +02:00
Stefano Rivera
6e4c276d1f
Update metadata
2011-11-12 13:12:15 +02:00
Stefano Rivera
885b241709
Spelling and help formatting
2011-11-12 12:53:32 +02:00
Stefano Rivera
6ac3640c95
Display the binary package depended on, when searching by source package
2011-11-12 00:00:44 +02:00
Stefano Rivera
fae3d8db54
Description
2011-11-11 23:47:14 +02:00
Stefano Rivera
bb4f0d4295
Pass through error messages nicely
2011-11-11 23:38:01 +02:00
Stefano Rivera
c5201e1847
Sort rdepends
2011-11-11 23:32:20 +02:00
Stefano Rivera
d0149b00d7
Catch 404s (preliminary support)
2011-11-11 23:13:01 +02:00
Stefano Rivera
1948b455be
Don't try and look for reverse-Recommends on source packages
2011-11-11 16:42:10 +02:00
Stefano Rivera
ab02df8cd1
Update to newer webservice output. Verbose listing.
2011-11-11 16:31:10 +02:00
Stefano Rivera
c44f53e185
Move the API boundry of ubuntutools.rdepends
2011-11-10 02:05:43 +02:00
Stefano Rivera
fed4e17188
Rdepends client tool
2011-11-09 23:44:22 +02:00