152 Commits

Author SHA1 Message Date
Michael Bienia
046798d12b * lpapiwrapper.py:
Move isLpTeamMember from LpApiWrapper to PersonTeam where it belongs
2009-07-22 12:04:14 +02:00
Loïc Minier
509360d40d Document target dist as optional in the help output 2009-07-16 00:02:41 +02:00
Loïc Minier
685b1ead09 Require an argument and print help if it's missing 2009-07-16 00:02:20 +02:00
Loïc Minier
1820a2ccfa Allow for the EMAIL env var as a fallback for DEBEMAIL. 2009-07-15 23:58:24 +02:00
Michael Bienia
e6c5a0fe26 * requestsync:
Add "done" as last email command to stop parsing the email body for
  further email commands (lp: #372555)
2009-07-02 20:01:34 +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
e139944b3a * lpapiwrapper.py:
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
2009-06-27 11:58:05 +02:00
Michael Bienia
47a2274264 * requestsync: use the correct object to call getUbuntuDistribution 2009-06-18 23:17:41 +02:00
Iain Lane
ba0d0664a8 requestsync: We need to use the output from madison, not just throw it
away.
2009-06-15 19:58:41 +01:00
Michael Bienia
f60a86b68d * requestsync: Introduce some first LpApiWrapper use. 2009-06-12 00:48:41 +02:00
Jonathan Davies
7eb81c1185 Removed (superseded by Launchpad API support)
* ubuntutools/lp/cookie.py
 * ubuntutools/lp/urlopener.py

And removed references from these files as necessary:
 * requestsync
 * ubuntutools/lp/functions.py
2009-06-09 10:19:58 +01:00
Jonathan Davies
6a17e7c6c7 * ubuntutools/packages.py: Created checkIsInDebian() function.
* requestsync: Adapt to use new function above.
* update-maintainer: Rewrote in Python and adapted to use Maintainer
  field spec approved by the Technical Board at:
  - https://lists.ubuntu.com/archives/ubuntu-devel/2009-May/028213.html
2009-05-31 21:45:35 +01:00
Jonathan Davies
2cd60187c0 * requestsync: urlopener module is no longer required here. 2009-05-27 16:50:42 -04:00
Iain Lane
4b8839ef15 - Correct bug supervisor team to ubuntu-bugcontrol
- Remove team names from sponsorship message - makes the function much
    simpler

Also check if teams are valid using is_valid.
2009-05-09 21:08:46 +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
Colin Watson
f27b248164 * requestsync:
- Send a "Content-Type: text/plain; charset=UTF-8" header (LP: #246307).
2009-04-27 21:28:22 +01:00
Iain Lane
863a19276e requestsync: Fix unclosed string literal 2009-03-22 14:41:10 +00:00
Jonathan Davies
5cf5a784ec Merged Mitsuya Shibata's FeatureFreezeException explanation flag for requestsync. 2009-03-15 18:14:55 +00:00
Mitsuya Shibata
c359d6ea5a Add FFe report for requestsync. 2009-03-16 00:27:27 +09:00
Jonathan Davies
2cfb651336 * requestsync: Reverted old madison.php workaround (LP: #183346). 2009-03-14 12:16:32 +00:00
Jonathan Davies
81f3805efa Merged changes by Marco Rodrigues for Debian madison workaround in
requestsync.
2009-03-04 20:48:32 +00:00
Iain Lane
bc1e0be5d7 Update in more places 2009-03-02 20:54:33 +00:00
Iain Lane
dea3df2e40 requestsync: Drop "please" in bug titles, per recent discussion on the
ubuntu-bugsquad ML.
2009-03-01 14:17:10 +00:00
Marco Rodrigues
c8933eb174 Remove workaround for debian madison, it works fine now 2009-02-24 09:55:38 +00:00
Luca Falavigna
d830c5a4c1 Add per-package upload permission checks. 2009-02-19 23:59:12 +01:00
Jonathan Davies
b04a9071c0 * requestsync: Only check existing reports if the --lp flag is used. 2009-02-16 15:07:30 +00: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
Iain Lane
304cd20e8e requestsync: Only attempt to change bug importance if in ubuntu-dev, as it
will fail otherwise.
2009-01-25 00:15:06 +00:00
Jonathan Davies
88abaa56cf More module reorganzation. 2009-01-19 22:37:27 +00:00
Jonathan Davies
0bbef6d974 Forgot to convert this bit. 2009-01-19 18:13:28 +00:00
Jonathan Davies
32f8e2b2bc * Converted everything else. 2009-01-19 18:10:53 +00:00
Jonathan Davies
d1ec836e76 * requestsync: Skip existing bug check if no credentials are
found (LP: #318120).
2009-01-17 14:33:29 +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
152220567d * requestsync: Catch credentials error to hide traceback. 2009-01-17 11:14:40 +00:00
Jonathan Davies
6d5d623e62 * doc/manage-credentials.1: Written up.
* common.py: Change default location of our credentials to
  ~/.lp_credentials.txt and service to edge.
* requestsync.1: Change as necessary to launchpadlib.
2009-01-13 21:43:14 +00:00
Markus Korn
59e7037ed8 * requestsync: use getSourcePackage() instead of loading the package-object
directly
2009-01-07 10:11:06 +01:00
Markus Korn
4845fcea2d added comment about porting checkNeedsSponsorship() from py-lp-bugs to launchpadlib 2009-01-07 09:37:41 +01:00
Markus Korn
cbae36502c string fixes in requestsync 2009-01-07 09:18:33 +01:00
Markus Korn
7439db8d3b removed hardcoding of location for the 'common'-module, this module is now properly installed via 'py_modules'-definition in setup.py 2009-01-05 08:59:35 +01:00
Markus Korn
7e277c713c merged changes from lp:ubuntu-dev-tools 2009-01-05 08:49:12 +01:00
Markus Korn
2963e1539c replace launchpadbugs by launchpadlib in requestsync 2009-01-02 17:52:51 +01:00
Jonathan Davies
eee4c697d5 * requestsync: Implemented sleeps to --lp bug reporting in case of a slow
Launchpad to stop mass bug filing (LP: #311289).
2009-01-02 13:18:53 +00:00
Jonathan Davies
ff3c4a269f * requestsync: Remove commented out getopt import. 2009-01-02 00:29:19 +00:00
Jonathan Davies
ac26414459 * requestsync:
- Use optparse instead of getopt for option parsing.
  - Skip existing bug report check if python-launchpad-bugs is not 
    installed.
2009-01-02 00:17:49 +00:00
Jonathan Davies
75b115a5dd requestsync: Do not check package's Launchpad bug list page if the package to be synced is a new package. As this page does not exist for it (LP: #312297). 2008-12-29 23:50:48 +00:00
Jonathan Davies
83a650c07f * requestsync: Add -s flag to usage. 2008-12-29 19:04:42 +00:00
Jonathan Davies
50d55f1d9a * requestsync: Readd sponsorship flag and related documentation in
doc/requestsync.1 (LP: #270605).
2008-12-29 18:58:11 +00:00
James Westby
082ba0b322 requestsync: tell the user when you are waiting for input from them after
giving the sponsorship warning, rather than appearing to hang.
2008-11-07 16:58:22 +00:00
Jonathan Patrick Davies
aea1d639e8 * requestsync: Improve wording. 2008-09-02 09:54:26 +01:00
Jonathan Patrick Davies
e34088a986 * requestsync: Improve dup sync bug checking. 2008-09-01 23:12:38 +01:00