* 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.
- Catch IOError from libsupport.get_launchpad(), display the error and
exit
- Bug fix in PersonTeam.canUploadPackage()
- Remove leftover code from PersonTeam.isPerPackageUploader()
- Rename Distribution.getMainArchive() to getArchive() and let it also fetch
other archives besides the main one.
* udtexceptions.py:
- Add ArchiveNotFoundException
- Move getUbuntuSourcePackage() from LpApiWrapper to the Archive class
and rename it to getSourcePackage().
- Leave LpApiWrapper.getUbuntuSourcePackage() as a shortcut for now.
Move getUbuntu{Development,}Series from LpApiWrapper to Distribution
and rename it to get{Development,}Series
* pull-lp-source, requestsync:
Updated for the above mention change.
- Add _UbuntuSeries and _SourcePackage wrapper classes for proper type checking
* functions.py: Removed
- Move the remaining functions to lpapiwrapper.py
* buildd, requestsync:
- Updated for the new function location
canUploadPackage(): Assume 'universe' as component if the package doesn't
exist (yet) in Ubuntu (needed for checking sponsorship when requesting syncs
of new packages).
* requestsync: use canUploadPackage() from LpApiWrapper
a value fetched from LP. Instead fetch the default value during call time.
This way the functions module doesn't require to use LP API during module
load.
* buildd: Move the import of ubuntutools.lp.functions to the other module
inclusion.
OO-way and add caching
* ubuntutools/lp/functions.py: Use the lpapiwrapper.py where applicable and
mark the rewritten functions as deprecated
* ubuntutools/lp/udtexceptions.py: Add PocketDoesNotExistException
* buildd: Make use of LpApiWrapper
* ubuntutools/lp/cookie.py
* ubuntutools/lp/urlopener.py
And removed references from these files as necessary:
* requestsync
* ubuntutools/lp/functions.py