189 Commits

Author SHA1 Message Date
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
Jonathan Patrick Davies
806beacb51 * requestsync: Check for already existing sync requests before filing a new
one.
2008-09-01 22:29:32 +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
839c167927 * requestsync: Return an error when the script is unable to connect to
packages.debian.org (LP: #261916).
* Changes by Karl Goetz: Add a Recommends: on ca-certificates (LP:
  #247157).
2008-08-27 23:28:05 +01:00
Jonathan Patrick Davies
159df6ac27 * Merged changes to requestsync by Jelmer Vernooij. 2008-08-25 11:06:36 +01:00
Jonathan Patrick Davies
570a068118 * requestsync: Exit when connecting to Launchpad fails. 2008-08-24 21:46:53 +01:00
Jelmer Vernooij
97b9b9ccc2 Document -d in requestsync help. 2008-08-23 18:28:13 +02:00
Jelmer Vernooij
9a5df25367 Merge trunk. 2008-08-23 18:27:13 +02:00
Jelmer Vernooij
4a6e0118c1 Add -d option to requestsync to allow requesting syncs from other Debian distros than unstable. 2008-08-23 18:14:33 +02:00
Loïc Minier
9a34c5c278 Import urllib2. 2008-08-18 12:07:45 +02:00
Jonathan Patrick Davies
3919c682e6 * requestsync: Correct print statement redirect to sys,stderr. 2008-08-18 11:01:04 +01:00
Jonathan Patrick Davies
1359d91815 * requestsync: Suggest using the --lp flag when mailing a request encounters
a failure.
2008-08-15 22:08:10 +01:00
Jonathan Patrick Davies
b0528dd32e * requestsync: Fixes to permission checking.
* common.py: Change cookie file permissions to read and write only by user.
2008-08-12 18:18:11 +01:00
Jonathan Patrick Davies
575e8e76d4 * requestsync: Added left out '% team' to urlopen(). 2008-08-12 15:46:44 +01:00