14 Commits

Author SHA1 Message Date
Benjamin Drung
4449cf2437 Fix warnings found by pylint
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 15:51:29 +01:00
Benjamin Drung
3354b526b5 style: Format Python code with black
```
PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .)
black -C -l 99 . $PYTHON_SCRIPTS
```

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 19:45:36 +01:00
Dan Streetman
b96885f05e ubuntutools/archive: convert external rmadison call to native implementation
instead of a function that calls the system program rmadison, use
a fully-functional class to interface with the madison api, as well
as the debian snapshot api
2019-11-25 09:57:54 -05:00
Benjamin Drung
cc7170eccb Fix all flake8 issues 2017-05-01 00:20:03 +02:00
Ursula Junque (Ursinha)
6fea8fb542 Fix behavior of getBinaryPackage in lpapicache
It was using the same parameters to get Source and Binary packages build
history, but source packages need a distro series, and binary packages
need distro arch series, as the results are arch dependent.

Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2017-04-30 20:02:06 +02:00
Stefano Rivera
f01beda01c Convert last Python code from mixed tabs and spaces to spaces 2010-12-22 23:04:29 +02:00
Benjamin Drung
1943df29eb Remove all trailing spaces. 2010-12-03 00:06:43 +01:00
Michael Bienia
5babcfe869 ubuntutools/lp/udtexceptions.py: Rename PocketDoesNotExistException to PocketDoesNotExistError. 2010-03-20 19:27:40 +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
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
Michael Bienia
40f749c91b * ubuntutools/lp/lpapiwrapper.py: Rewrite some functions from functions.py in a
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
2009-06-11 20:23:30 +02:00
Iain Lane
d134469ed3 Convert _findMember to use newly efficient isLPTeamMember, and remove name argument since we always just check launchpad.me anyway. Remove TeamNotFoundException which is now never thrown (false is just returned instead). 2009-05-17 16:06:26 +01:00
Iain Lane
b4cd975dc8 * ubuntutools/lp/lp_functions.py,
ubuntutools/lp/udtexceptions.py:
  - Add new public functions that expose features from LP API
  - Modify isLPTeamMember to use LP API
* requestsync
  - Use new functions to check if user can upload requested package directly
    instead of checking team membership
  - Default to current development release if no release is specified on
    commandline
* buildd
  - Check if user has upload privileges instead of checking for team
    membership when seeing if operations are permitted
2009-05-09 20:09:56 +01:00