49 Commits

Author SHA1 Message Date
Stefano Rivera
165279fae9 TODO note on getDebianChangelog 2011-08-24 23:48:48 +02:00
Colin Watson
a6b95b7d53 style 2011-08-18 15:11:36 +01:00
Colin Watson
5eb960dd3f make better use of ubuntutools.archive, allowing us to detect when fakesyncs are required in LP mode 2011-08-17 03:03:01 +01: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
Michael Bienia
5ef61615ce Use the new web_link attribute of LP objects instead of our own
translate_api_web() function.
2011-02-11 15:33:09 +01:00
Stefano Rivera
773c5c33e0 Rework Scott's requestsync modifications for robustness and staging-support 2011-02-01 10:10:31 +02:00
Benjamin Drung
6e38700f26 ubuntutools/requestsync/lp.py: Fix typo codenames -> codename. 2011-01-22 02:27:10 +01:00
Benjamin Drung
1a8951e82d Use new ubuntutools.distro_info in various scripts. 2011-01-21 19:20:04 +01: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
Stefano Rivera
e55766b0d9 hugdaylist, manage-credentials, massfile, merge-changelog,
ubuntutools/requestsync/common.py: Some pyflakes-induced cleanup.
2010-09-22 11:29:14 +02: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
5babcfe869 ubuntutools/lp/udtexceptions.py: Rename PocketDoesNotExistException to PocketDoesNotExistError. 2010-03-20 19:27:40 +01:00
Michael Bienia
f5c6695e13 ubuntutools/lp/lpapicache.py:
* Make PersonTeam.getMe() a class property (PersonTeam.me).
ubuntutools/requestsync/lp.py, ubuntu-build:
* Update for the above mentioned change.
2010-02-20 18:13:15 +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
fe9b731b30 ubuntutools/requestsync/common.py: Decode the edited report file back from
UTF-8 so it can be encoded again in the next iteration (lp: #504263)
2010-01-07 23:14:24 +01:00
Michael Bienia
0d0b21b353 ubuntutools/requestsync/common.py: write the report into the tempfile encoded as utf-8 2009-12-23 00:03:58 +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
a6002f06e0 ubuntutools/requestsync/common.py: convert the changelog into a unicode string
(lp: #498349)
2009-12-20 14:11:30 +01:00
Michael Bienia
87660fb375 requestsync: request syncs from 'testing' by default
(should be changed back to 'unstable' for lucid+1)
2009-11-02 19:03:18 +01:00
Luca Falavigna
5bdec5b5b2 Explicitly import exceptions for backward compatibility with Python 2.5 2009-10-19 20:51:08 +02: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
d5a19ca5a7 ubuntutools.requestsync.lp: fix errors in imports 2009-08-22 18:07:26 +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
ec92bb5d75 requestsync: move the remaining code of cur_version_component() into the
__main__ code.
2009-08-22 11:59:22 +02:00
Michael Bienia
ea3c45cb16 Merge from devel branch. 2009-08-22 11:40:43 +02:00
Michael Bienia
d96e4af643 requestsync: move post_bug() to ubuntutools/requestsync/lp.py 2009-08-12 13:46:21 +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
5748f9d64f requestsync: more refactoring 2009-08-07 13:27:45 +02:00
Michael Bienia
ba14d22954 requestsync: more refactoring 2009-08-07 12:53:33 +02:00
Michael Bienia
ce4e0932a5 ubuntutools/requestsync/mail.py: Rename SourcePackage to
SourcePackagePublishingHistory to be in line with the lpapicache module.
2009-08-06 16:26:29 +02:00
Michael Bienia
5e3e368bb8 requestsync: some more refactoring 2009-08-06 00:23:58 +02:00
Michael Bienia
c30c4865a4 ubuntutools/requestsync/*.py: update copyright notices and license to match
the requestsync script
2009-08-05 23:10:05 +02:00
Michael Bienia
fa0b10c274 requestsync: more refactoring 2009-08-04 14:24:04 +02:00
Michael Bienia
df881ec2da requestsync: refactor some code into its own module
and provide versions of the methods w/ and w/o LP API usage
2009-08-04 13:43:31 +02:00