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
ae5190c76f
ubuntutools/lp/lpapicache.py: Check at some more place for basestring instead
...
of only str to catch also unicode ones.
2009-12-08 18:07:46 +01:00
Luca Falavigna
7082fa14ff
ubuntutools/lp/lpapicache.py: recent lazr.restfulclient does use of
...
unicode strings, use basestring to catch bot str and unicode.
2009-11-29 17:58:36 +01:00
Iain Lane
6db05720f3
Conditional LP API usage & better p-l-s errors
...
* lpapicache: Do not immediately bail out if we have no credentials to
login. Clients are now expected to handle the lack of credentials
themselves.
* pull-lp-source: Make LP API use optional - fall back to a hardcoded
default release if we aren't using it. (LP: #477670 )
* pull-lp-source: Detect more failure conditions and give a nice error
instead of a trace
* buildd, requestsync: Detect & bail if we don't have credentials and need
them. These scripts cannot continue under those circumstances.
2009-11-07 19:20:46 +00: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
Siegfried-Angel Gevatter Pujals
ea9ee6d0a7
Simplify some code.
2009-10-25 14:32:36 +01:00
Siegfried-Angel Gevatter Pujals
ab78b51a9f
* debian/control:
...
- Improve description of pbuilder-dist and mention cowbuilder-dist.
* pbuilder-dist:
- Abort if the host's architecture can't be determined.
- Error out instead of showing a traceback if pbuilder-dist is called
without any argument.
* pbuilder-dist, ubuntutools/misc.py:
- Move the functions used to determine the hosts architecture and
distribution to the ubuntutools.misc module.
2009-10-25 13:57:39 +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
48f591a4bb
lpapicache.py: Fix imports with python-launchpadlib 1.5.1 and add
...
python-lazr-restfulclient to Depends
2009-08-29 11:13:08 +02:00
Michael Bienia
0510f340ca
ubuntutools/lp/lpapicache.py: remove the useless LpApiWrapper class
2009-08-25 13:18:46 +02:00
Michael Bienia
1efd85bb5f
Merge my requestsync branch:
...
- Use UBU* environment variables before the DEB* ones (lp: #400133 )
- Split requestsync into a "mail" module and a "lpapi" module and use
the LP API only when --lp was used. In "mail" mode requestsync has
to ask some more questions for parts it can't find out without LP API.
(lp: #406659 , #416955 )
2009-08-25 13:15:18 +02:00
Michael Bienia
82899a0f45
bug fixes
2009-08-25 13:02:57 +02:00
Michael Bienia
30bb23a2b7
lpapicache.py:
...
- Catch IOError from libsupport.get_launchpad(), display the error and
exit
- Bug fix in PersonTeam.canUploadPackage()
- Remove leftover code from PersonTeam.isPerPackageUploader()
2009-08-24 12:14:02 +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
aab36b1d41
* Merge from devel branch
2009-08-09 13:43:18 +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
3e71ff7ab7
ubuntutools/common.py: remove unneeded imports
2009-08-07 13:10:22 +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
0e4604eeb7
Merge from my devel branch
2009-08-06 16:24:20 +02:00
Michael Bienia
8a29c11904
lpapicache.py: add DistributionSourcePackage
2009-08-06 16:23:38 +02:00
Michael Bienia
0db2c71998
lpapicache.py: Rename the SourcePackage class to SourcePackagePublishingHistory
...
which it really is and to make room once a class for the real source_package is
needed.
2009-08-06 16:16:17 +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
a0f10bb410
Merge changes from my devel branch
2009-08-04 15:57:36 +02:00
Michael Bienia
54e9563e92
Replace LpApiWrapper.getUbuntuSourcePackage() with
...
Distribution('ubuntu').getArchive().getSourcePackage()
2009-08-04 15:53:49 +02:00
Michael Bienia
a49e4f6d43
Replace LpApiWrapper.getUbuntuDistribution() with Distribution('ubuntu')
2009-08-04 15:49:24 +02:00
Michael Bienia
74e55c2166
Rename lpapiwrapper.py to lpapicache.py as it describes its function better
2009-08-04 15:40:41 +02:00
Michael Bienia
b3b816515e
lpapiwrapper.py: Move getMe() from LpApiWrapper to PersonTeam
2009-08-04 15:32:39 +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
Michael Bienia
cdb1292963
- lpapiwrapper.py: fix typos
...
- buildd: add options for the new mode (v2)
2009-07-25 17:03:14 +02:00
Michael Bienia
b96c73ba64
* Merge from by devel branch.
2009-07-25 16:00:26 +02:00
Michael Bienia
f3e8c0ee84
lpapiwrapper.py: Added methods needed for buildd.
2009-07-25 16:00:01 +02:00
Michael Bienia
ce84101f73
lpapiwrapper.py: Let PersonTeam.__str__() return a unicode string.
2009-07-25 14:04:25 +02:00
Michael Bienia
3fb1ca0b7c
lpapiwrapper.py:
...
- Move LpApiWrapper.canUploadPackage() and LpApiWrapper.isPerPackageUploader()
to PersonTeam. Leave stubs for now in LpApiWrapper.
2009-07-24 16:52:18 +02:00
Michael Bienia
3bcda69839
* udtexceptions.py
...
- Rename PocketDoesNotExist to PocketDoesNotExistException to be in line with
the naming of the other exceptions.
2009-07-23 14:21:42 +02:00
Michael Bienia
d062a2f8a6
* lpapiwrapper.py:
...
- Rename Distribution.getMainArchive() to getArchive() and let it also fetch
other archives besides the main one.
* udtexceptions.py:
- Add ArchiveNotFoundException
2009-07-23 14:19:21 +02:00