59 Commits

Author SHA1 Message Date
Michael Bienia
c1a9323035 buildd: Rename --v2 to --batch 2009-07-29 22:59:26 +02:00
Michael Bienia
a30e797e8c buildd: some cleanup 2009-07-29 16:20:58 +02:00
Michael Bienia
20157940ae buildd: make the -a option not break in v2 mode 2009-07-29 16:13:24 +02:00
Michael Bienia
6c5a9971fe buildd: Add v2 mode 2009-07-29 16:02:58 +02:00
Michael Bienia
4f97f5ba15 buildd: Create a base to add code for the new v2 mode 2009-07-29 14:49:06 +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
Sarah Hobbs
76455d8933 Fix typo in buildd so specifiying arches works again 2009-07-24 17:37:06 +10:00
Michael Bienia
046798d12b * lpapiwrapper.py:
Move isLpTeamMember from LpApiWrapper to PersonTeam where it belongs
2009-07-22 12:04:14 +02:00
Michael Bienia
a0ae5a2e23 * lpapiwrapper.py:
- 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
2009-07-02 13:05:16 +02:00
Michael Bienia
d35077e14e * ubuntutools/lp/lpapiwrapper.py:
+ Wrap access to launchpad.me
  + Implement canUploadPackage() in LpApiWrapper
2009-06-11 22:51:52 +02:00
Michael Bienia
81c1cf50df * ubuntutools/lp/lpapiwrapper.py:
Make getUbuntuSourcePackage a classmethod
* buildd:
  Remove unneeded variables
2009-06-11 21:18:52 +02:00
Michael Bienia
f03f0ec72a * ubuntutools/lp/functions.py: Make the default values of the function not use
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.
2009-06-11 20:36:11 +02:00
Michael Bienia
edce828ee0 * Don't forget to save my changes before commiting. 2009-06-11 20:27:31 +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
Michael Bienia
2ff5ec5ec0 * buildd: remove unneeded modules 2009-06-11 16:25:48 +02:00
Colin Watson
eb189ace78 typo 2009-06-09 13:32:14 +01:00
Jonathan Davies
fbc1f1f6d8 * buildd: Some full stops. 2009-06-09 10:03:50 +01:00
Michael Bienia
f760b4e845 * buildd: Use LP API for retrying or rescoring of builds. 2009-06-09 10:34:21 +02:00
Jonathan Davies
78b7833ea9 buildd: And support different releases with API too. 2009-05-28 06:34:53 -04:00
Jonathan Davies
ed15916481 buildd: Implemented partial launchpadlib support (displays build status
and arches for now).
2009-05-28 05:53:45 -04:00
Jonathan Davies
332b507bc2 buildd: Added a comment to explain why we're importing launchpadlib here. 2009-05-28 03:11:04 -04:00
Jonathan Davies
c9e4293dea * buildd:
- Do not display override message if --arch is not used.
  - Fix permissions warning message and do not mention teams as we check
    on a per package basis.
2009-05-27 18:01:58 -04:00
Jonathan Davies
a256eca0b7 * buildd: Use launchpadlib to check the Ubuntu release is valid. 2009-05-27 17:59:41 -04:00
Jonathan Davies
fbc5418533 * buildd: Moved Launchpad module imports here - speed up usage
parsing to improve user experience.
2009-05-27 17:57:10 -04: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
Loïc Minier
c05f149d67 Import ubuntutools.common explicitely in buildd and requestsync to get the
https_proxy fix.
2009-02-06 12:18:06 +01:00
Luca Falavigna
fdffec3237 s/except/except IndexError/ in my previous commit. 2009-01-25 16:56:25 +01:00
Luca Falavigna
a53cac66cd buildd: display help message if no parameters are passed. 2009-01-25 16:49:11 +01:00
Jonathan Davies
88abaa56cf More module reorganzation. 2009-01-19 22:37:27 +00:00
Jonathan Davies
66e11f7e49 * common.py: Split into multiple files in ubuntutools/.
* buildd: Converted new imports.
2009-01-19 17:55:00 +00:00
Jonathan Davies
59aac908c1 * Moved common.py to ubuntutools/ subdirectory to avoid possible conflicts
in Python packaging and fixed all imports as necessary.
2009-01-17 11:23:08 +00:00
Jonathan Davies
47dc6d5157 * buildd: Don't show arch override message if operation to perform is
'status'.
2009-01-05 10:02:02 +00:00
Jonathan Davies
4f99bf5466 * buildd: Added checks for arch-indep packages and packages which have no
builds in a release.
* hugdaylist: String improvements.
2008-12-31 22:37:21 +00:00
Jonathan Davies
cd3ec9ba7a * String improvements. 2008-12-30 10:23:00 +00:00
Jonathan Davies
dd02a931ba * buildd: Show which architectures are available in help and created a
list of them for easy addition of new ones.
2008-12-29 18:45:57 +00:00
Sarah Hobbs
5a47f6591e Add armel as an arch to buildd 2008-11-24 13:46:36 +11:00
Martin Pitt
16bce3a0d7 buildd: Strip off pocket from release name when parsing the builds page,
so that this script works for pockets, too.
2008-11-11 10:15:22 +01:00
Michael Casadevall
194a4c3251 Fixed buildd rescore 2008-11-08 06:33:26 -05:00
Jonathan Patrick Davies
c35c9c1246 * buildd: Fixed strings.
* common.py: Revert find() addition - breaks sqlite cookie checker.
2008-09-09 11:58:27 +01:00
Jonathan Patrick Davies
cbfdaaea55 Remove this left behind space. 2008-09-01 11:53:04 +01:00
Jonathan Patrick Davies
772d40b939 * debian/control:
- Improved description.
   - Wrapped Depends line and bumped debhelper build-dependency version to 6.
* debian/compat: Changed to 6.
* Moved https_proxy dropping code to common.py.
2008-09-01 11:41:19 +01:00
Jonathan Patrick Davies
83d71696d7 * buildd: Small changes to strings. 2008-09-01 11:19:08 +01:00
Jonathan Patrick Davies
13ccb17ef5 * buildd:
- Check if package is in restricted too.
  - Output which component the package is in, in the header.
2008-08-29 08:06:51 +01:00
Jonathan Patrick Davies
da9df8802b * buildd: Fix a verb tense. 2008-08-29 08:01:43 +01:00
Jonathan Patrick Davies
ea5b154129 * common.py: New function: packageComponent() - returns which component a package
in Ubuntu is in.
* buildd: Check which component the package is in.
2008-08-29 07:44:58 +01:00
Jonathan Patrick Davies
3c25fca142 * common.py: New function: isLPTeamMember() - checks if the user is a member of
the Launchpad team using cookies for authentication.
* requestsync: Adapt team checking with the function above.
* buildd: Adapt privilege checking code to the new function above.
2008-08-28 19:21:45 +01:00
Jonathan Patrick Davies
70fc6fa3c7 * common.py: New functions: checkReleaseExists() and checkSourceExists().
* buildd and pull-lp-source: Adapt code to use new functions above.
2008-08-27 10:22:08 +01:00
Loïc Minier
3407655c52 When https_proxy is in the environment, output a warning and disable it as
urllib/urllib2 don't support it; see LP #122551.
2008-08-18 13:27:20 +02:00
Loïc Minier
2875772fa6 Drop spurious tab in buildd. 2008-08-18 13:09:50 +02:00
Jonathan Patrick Davies
efb92c73af * buildd: Code cleanup on single arch options.
* doc/buildd.1: Created.
* doc/requestsync.1: Added note about sponsorship detecting.
2008-08-14 19:50:13 +01:00