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
Benjamin Drung
b510dbd91e
sponsor-patch: Ignore exit code 1 of debdiff call
...
sponsor-patch calls `debdiff` which exits with 1 if there are
differences. So accept exit codes 0 and 1 as expected.
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2022-11-15 16:43:27 +01:00
Dan Streetman
90e8fe81e1
replace ubuntutools.logger with standard python logging
2019-11-25 10:10:06 -05:00
Stefano Rivera
301569e809
Pull out Python 2 support hacks
2019-09-04 19:24:44 -03:00
Stefano Rivera
23c7d67425
Replace simple Popen() calls with check_output()
2019-09-04 19:24:44 -03:00
Stefano Rivera
2d3765522e
Use the Popen() encoding flag to decode to unicode
...
This should make behavior identical on Python 2 & 3.
2019-09-04 19:24:44 -03:00
Benjamin Drung
cc7170eccb
Fix all flake8 issues
2017-05-01 00:20:03 +02:00
Iain Lane
a6043a6ba8
Remove the `harvest' command, and all other integration with the Harvest service, since it has been shut down.
2017-04-03 13:58:02 +02:00
Dimitri John Ledkov
ed0cd2c1b5
file is gone in python3
2014-12-18 22:05:55 +00:00
Dimitri John Ledkov
c8ec463f7a
sp/source_package
2014-12-18 20:54:00 +00:00
Benjamin Drung
c2aa97dba2
Move devscripts.logger to ubuntutools.logger.
2013-03-19 00:18:02 +01:00
Iain Lane
5d02fe7a3e
sponsor-patch: Allow all supported bare releases now that LP rewrites
...
these to contain '-proposed' for us.
2013-01-16 15:15:50 +00:00
Benjamin Drung
34ca8072ff
sponsor-patch: Use ubuntu profile when running lintian.
2012-11-08 20:43:55 +01:00
Stefano Rivera
c946f9457f
sponsor-patch: Pass --builder=dpkg-buildpackage to bzr bd, in case the user has configured a custom builder that doesn't do source builds (LP: #1019817 )
2012-07-02 19:27:00 +02:00
Stefano Rivera
948032d8a3
Support syncs from a non-default series (LP: #931644 )
2012-02-15 15:16:30 +02:00
Stefano Rivera
e44205bb33
bzr bd argument order matters
2012-01-09 21:44:06 +02:00
Stefano Rivera
f124357734
syncpackage, backportpackage, sponsor-patch: Use -nc when building source
...
packages. Avoids needing build-deps on the build machine.
2011-12-23 22:34:54 +02:00
Benjamin Drung
bbfbfd8956
Allow user to override sanity checks (LP: #896733 ).
2011-12-21 22:09:53 +01:00
Benjamin Drung
3f6eb545e2
sponsor-patch: Check if the sponsored bug is marked as duplicate (LP: #896733 ).
2011-12-21 21:44:22 +01:00
Benjamin Drung
58e6dfbbdb
sponsor-patch: Use syncpackage instead of subscribing ubuntu-archive for sync requests, because syncpackage supports sponsorship now.
2011-12-10 12:51:53 +01:00
Stefano Rivera
ea962ee2ac
sponsor-patch: Check permission to unsubscribe sponsors-team (LP: #896884 )
2011-11-27 21:02:48 +02:00
Andreas Moog
73843307f0
Use variable for caching, not lpapicache
2011-11-27 19:46:53 +01:00
Andreas Moog
053b4dcc30
[sponsor-patch] Use api cache for sponsors-team
2011-11-27 17:38:41 +01:00
Andreas Moog
5f27c4c1e7
sponsor-patch: Check permission to unsubscribe sponsors-team (LP: #896884 )
2011-11-27 16:47:38 +01:00
Andreas Moog
20e757b2a5
* sponsor-patch: Build a source package for lintian to run on, when not
...
test-building syncs.
* sponsor-patch: Check the bug's title, not the task, when determining
source series for syncs.
2011-11-27 16:40:16 +01:00
Stefano Rivera
83f9fba796
whitespace...
2011-11-27 17:20:40 +02:00
Andreas Moog
8d551acfb5
Correct syntax error
2011-11-27 16:00:05 +01:00
Andreas Moog
7ed4347de5
sponsor-patch: Check permission to unsubscribe sponsors-team (LP: #896884 )
2011-11-27 15:54:53 +01:00
Stefano Rivera
d30ffe59bc
Improve error message when sponsor-patch is called without -s, for a sync
2011-11-27 15:55:56 +02:00
Benjamin Drung
ba472b71d9
sponsor-patch: Check version of sponsored sync request too.
2011-09-20 00:31:51 +02:00
Benjamin Drung
663cb5214f
sponsor-patch: Check if the version of a sync request is mentioned in the bug title.
2011-09-15 13:37:22 +02:00
Benjamin Drung
5942694e6f
sponsor-patch: Use old Archive Admin way for sync requests until bug #827555 is fixed.
2011-09-15 13:08:06 +02:00
Benjamin Drung
6fdef19b2c
sponsor-patch: Support sync requests and make ack-sync obsolete (LP: #764763 ).
2011-09-10 22:55:08 +02:00
Benjamin Drung
1e126f74d1
sponsor-patch: More refactoring.
2011-09-10 21:28:28 +02:00