Mattia Rizzolo
edb49c652c
Fix test failures with newer flake8 and pylint.
...
Closes : #891721
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2018-03-08 12:56:36 +01:00
Iain Lane
0a3738cfbc
Fix some 2/3 differences and run pylint with confidence=HIGH
...
Too many false positives otherwise.
2017-05-30 11:22:49 +01:00
Benjamin Drung
cc7170eccb
Fix all flake8 issues
2017-05-01 00:20:03 +02:00
Adam Conrad
f0d22226a9
Allow requestsync/syncpackage to work with either codename or alias
2015-06-14 13:50:28 -06:00
Dimitri John Ledkov
3f512ee337
rs/mail
2014-12-18 20:48:28 +00: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
e68d3a699d
Bump logging level of 'connecting' message
2011-12-03 22:07:18 +02:00
Stefano Rivera
9442e2ea30
Catch response exceptions in the DATA phase
2011-12-03 22:06:49 +02:00
Stefano Rivera
899d1b5361
Use tempfile
2011-12-03 21:57:11 +02:00
Andreas Moog
8a6502aaa4
Use regex to filter unwanted characters in filename
2011-12-03 18:09:49 +01:00
Andreas Moog
32a85dc172
Add a exception for disconnected server
2011-12-03 18:01:55 +01:00
Andreas Moog
d18a35c449
Also allow retry if recipient got rejected
2011-12-03 11:57:18 +01:00
Andreas Moog
12030d99e9
Use bugtitle as temporary filename
2011-12-03 11:12:11 +01:00
Andreas Moog
9199747fc3
Space after comma
2011-12-02 20:06:57 +01:00
Andreas Moog
0e3a831df9
Use Logger.normal
2011-11-29 20:20:25 +01:00
Andreas Moog
10e9b18ca7
Save a temporary file in case sending fails
2011-11-28 20:50:28 +01:00
Andreas Moog
d9c00752c0
Wrap long line
2011-11-28 19:53:23 +01:00
Andreas Moog
677e1b8e4e
requestsync: Give user option to retry in case of temporary error (LP: #850360 )
2011-11-27 22:14:05 +01:00
Stefano Rivera
09e468211a
Add changelog retrieval to lpapicache, and use this in syncpackage and
...
requestsync. The changelogs should be available in Launchpad sooner than
Debian PTS.
2011-11-13 22:50:34 +02:00
Stefano Rivera
d4fbed617f
Use EditBugReport instead of requestsync's edit_report. Drop that.
2011-11-13 20:15:19 +02:00
Benjamin Drung
1c814c8ec6
ubuntutools/requestsync: Follow PEP 8 naming conventions.
2011-09-10 15:42:40 +02:00
Stefano Rivera
cd236932de
* requestsync: Extract current Ubuntu delta from changelog entries and provide for editing (LP: #547925 )
...
* Bump python-debian B-D and Depends to 0.1.20 for unicode Changelog reading.
2011-09-10 10:28:41 +02:00
Benjamin Drung
f82cd1f2cc
Use full sentences.
2011-09-10 00:50:48 +02:00
Stefano Rivera
178456394e
requestsync: Add nice error messages to gpg-signing code, rather than
...
simple assertions (LP: #537288 )
2011-09-09 20:03:47 +02:00
Benjamin Drung
a03fa654f3
Move debian-distro-info, distro-info, and ubuntu-distro-info from
...
ubuntu-dev-tools into distro-info.
2011-06-25 17:53:44 +02:00
Evan Broder
d82e65e0e2
* ubuntutools.subprocess:
...
- New drop-in replacement wrapper module around subprocess that
backports the restore_signals kwarg and defaults close_fds=True
- Switch everything previously using subprocess to use
ubuntutools.subprocess instead (LP: #785854 )
2011-05-24 20:22:37 +02:00
Stefano Rivera
989aecd253
Canonicalise suites (use code-names) before passing them to rmadison.
2011-03-06 00:48:24 +02:00
Stefano Rivera
773c5c33e0
Rework Scott's requestsync modifications for robustness and staging-support
2011-02-01 10:10:31 +02:00
Stefano Rivera
038cd428d3
Use ubuntutools.archive's rmadison code in requestsync.mail
2011-01-15 20:54:45 +02:00
Stefano Rivera
9fa9f3eb96
Whitespace and style cleanups
2010-12-23 00:01:39 +02:00
Stefano Rivera
f01beda01c
Convert last Python code from mixed tabs and spaces to spaces
2010-12-22 23:04:29 +02:00
Stefano Rivera
82eab1c349
Config file support in requestsync
2010-12-21 17:02:36 +02:00
Benjamin Drung
100ba7d1b5
Remove all trailing tabs.
2010-12-03 00:10:41 +01:00
Benjamin Drung
1943df29eb
Remove all trailing spaces.
2010-12-03 00:06:43 +01:00
Michael Bienia
bbe51620d4
Update to the new python-debian version:
...
- Depend on python-debian >= 1.1.15
- Replace imports of debian_bundle with debian to fix the deprecation
warnings.
2010-06-08 19:09:40 +02:00
Michael Bienia
24a8eae5c7
ubuntutools/requestsync/mail.py: Fix some more encoding issues.
2010-03-25 21:58:01 +01:00
Michael Bienia
0dfe4b4731
ubuntutools/lp/lpapicache.py:
...
* PersonTeam.canUploadPackage() can now also check package sets for upload
permissions. This requires now to also pass the distroseries as package sets
are per distroseries.
* Drop PersonTeam.isPerPackageUploader() as it's also handled by canUploadPackage()
ubuntu-build: Update for the PersonTeam.canUploadChange().
ubuntutools/requestsync/{lp,mail}.py:
* needSponsorship() now also expects a release name because of the above mentioned
change to PersonTeam.canUploadPackage().
requestsync: Update for needSponsorship() change.
2010-02-20 15:48:48 +01:00
Michael Bienia
4da9387f3d
Merge with trunk.
2010-02-16 14:06:32 +01:00
Michael Bienia
cfe30e88e5
ubuntutools/requestsync/mail.py: Encode the report to utf-8 before passing
...
it to gpg for signing (lp: #522316 ).
2010-02-15 22:40:51 +01:00
Michael Bienia
95487419e7
ubuntutools/requestsync/{lp,mail}.py: Replace the relative imports with
...
absolute ones (follow PEP8)
2010-02-04 00:37:02 +01:00
Michael Bienia
80ff3827c3
ubuntutools/requestsync/mail.py:
...
Map "sid" back to "unstable" (and "squeeze" to "testing") else rmadison
gets a Python traceback from the remote site instead of the expected data
(lp: #508794 ).
2010-01-17 17:59:41 +01:00
Michael Bienia
0a3d905cf4
ubuntutools/requestsync/mail.py: rmadison() returns now the most recent source
...
line (Closes : #560758 )
2009-12-20 15:43:57 +01:00
Michael Bienia
82899a0f45
bug fixes
2009-08-25 13:02:57 +02:00
Michael Bienia
f284ee7cd6
requestsync: cleanup
2009-08-23 13:08:22 +02:00
Michael Bienia
5448add754
requestsync: make a "mail" and "lp" version of checkExistingReports and move
...
it to the correct module
2009-08-22 17:39:38 +02:00
Michael Bienia
e628bfbe34
requestsync:
...
- move mail_bug() to ubuntutools.requestsync.mail
- implement support for UBU* environment variables (lp: #400133 )
2009-08-22 17:12:55 +02:00
Michael Bienia
7ff9aa777a
requestsync, ubuntutools/requestsync/common.py:
...
Move the asking about editing the report to edit_report()
2009-08-12 13:14:50 +02:00
Michael Bienia
6d924143c0
requestsync: refactor 'checkNeedsSponsorship'
2009-08-07 14:07:46 +02:00
Michael Bienia
ba14d22954
requestsync: more refactoring
2009-08-07 12:53:33 +02:00