Evan Broder
ee157d1cd9
ubuntutools.builder: Small fixup spotted by pylint
2010-12-12 20:20:40 -08:00
Evan Broder
b56b02683b
sponsor-patch: Separate multi-builder support into a Python module.
...
Rename SPONSOR_PATCH_BUILDER environment variable to
UBUNTUTOOLS_BUILDER (but still support SPONSOR_PATCH_BUILDER)
2010-12-12 19:45:52 -08:00
Evan Broder
fc7faa9780
sponsor-patch, backportpackage:
...
Factor out logging code from sponsor-patch and share it with backportpackage
2010-12-12 19:27:08 -08: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
f347770b46
Use dpkg-vendor in ubuntutools.misc.system_distribution(), cache result.
2010-12-02 09:34:09 +02:00
Stefano Rivera
516b264a8f
Strip trailing whitespace
2010-12-02 09:33:54 +02:00
Benjamin Drung
65efe55972
ubuntutools/update_maintainer.py: Fix failure if debian/control.in is a
...
directory.
2010-09-22 15:54:47 +02:00
Benjamin Drung
533fac4911
requestsync, ubuntutools/lp/lpapicache.py: Import functions explicitely.
2010-09-22 14:07:23 +02:00
Stefano Rivera
a2a4fc785d
ubuntutools/lp/libsupport.py: Support production API URLs in
...
translate_web_api.
2010-09-22 11:41:58 +02: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
Luca Falavigna
4b13534eea
* ubuntutools/misc.py:
...
- Use output of dpkg --print-architecture command to correctly display
platform architecture
2010-09-20 18:12:39 +02:00
Benjamin Drung
5e0d815405
Move update-maintainer code into library for sponsor-patch.
2010-09-19 20:24:27 +02:00
Iain Lane
0021522956
all: Use production API rather than edge by default. Should be more
...
reliable and was advised by lifeless (LP team).
2010-09-14 09:30:04 +01:00
Michael Bienia
1e7993df3e
ubuntutools/lp/lpapicache.py: The LP API function archive.checkUpload() throws
...
an exception when the person has no upload rights.
2010-07-22 21:13:20 +02:00
Michael Bienia
924f910335
ubuntutools/lp/lpapicache.py: use the new LP API function archive.checkUpload() to check upload permissions
2010-07-11 18:41: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
dfc59c0558
ubuntutools/lp/lpapicache.py: Also specify the LP API version to use when
...
using anonymous login.
2010-03-20 19:58:13 +01:00
Michael Bienia
cc8ec956b0
Factor our the spliting of the release name and the pocket name into its
...
own function.
2010-03-20 19:45:04 +01:00
Michael Bienia
5babcfe869
ubuntutools/lp/udtexceptions.py: Rename PocketDoesNotExistException to PocketDoesNotExistError.
2010-03-20 19:27:40 +01:00
Michael Bienia
e4e8f156bd
* ubuntutools/lp/lpapicache.py, ubuntutools/lp/libsupport.py: Add support
...
for different LP API versions.
* ubuntutools/lp/__init__.py: Set the '1.0' LP API version as default.
* massfile: Updated to 1.0 LP API.
2010-03-20 18:27:31 +01:00
Daniel Holbach
f84f961805
* hugdaylist, requestsync, doc/requestsync.1:
...
ubuntu-{main,universe}-sponsors → ubuntu-sponsors,
{ubuntu,motu}-release → ubuntu-release.
* ubuntutools/ppaput.py: removed, not necessary any more.
* debian/copyright: removed references to ppaput.
2010-03-15 10:22:35 +01:00
Michael Bienia
8377c6bfa3
ubuntutools/lp/lpapicache.py:
...
* Specify __all__
2010-02-20 18:19:44 +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
8c114519e8
ubuntutools/lp/lpapicache.py:
...
* Add support for anonymous login to the Launchpad singleton.
ubuntutools/lp/udtexceptions.py:
* Add AlreadyLoggedInError
2010-02-20 17:07:03 +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
caafd18fb9
ubuntutools/lp/lpapicache.py:
...
Re-add dropped "beta/" to the resource type URLs
Use lookup_service_root() when checking for LP API URLs
2010-02-20 15:18:52 +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
b101712009
ubuntutools/lp/lpapicache.py: Add __repr__() to the BaseWrapper class
2010-02-12 19:36:08 +01:00
Michael Bienia
4f21ae1cd0
Replace translate_service() from ubuntutools.lp.libsupport with calls to
...
lookup_service_root() from launchpadlib.uris.
2010-02-12 18:47:02 +01:00
Michael Bienia
a33a5c106b
ubuntutools/lp/__init__.py: Define the default LP service to use (default: edge)
...
ubuntutools/lp/__init__.py: Don't hardcode the LP service root but look it up instead
debian/control: Depend on python-launchpadlib >= 1.5.4 because of this
2010-02-06 01:53:29 +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
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