172 Commits

Author SHA1 Message Date
Michael Bienia
d96e4af643 requestsync: move post_bug() to ubuntutools/requestsync/lp.py 2009-08-12 13:46:21 +02:00
Michael Bienia
7ff9aa777a requestsync, ubuntutools/requestsync/common.py:
Move the asking about editing the report to edit_report()
2009-08-12 13:14:50 +02:00
Iain Lane
e54ee2d25a Attempt to fix sponsorship detection for new source packages 2009-08-09 15:06:56 +01:00
Michael Bienia
aab36b1d41 * Merge from devel branch 2009-08-09 13:43:18 +02:00
Michael Bienia
17c36f9107 requestsync: Call isLpTeamMember() from the correct object 2009-08-09 13:20:13 +02:00
Michael Bienia
c060c48ec8 Merge with trunk. 2009-08-09 13:03:00 +02:00
Iain Lane
39594f64e0 * requestsync: Guard some calls when -n is specified
* suspicious-source: Add *.hs *.el *.css to whitelist
2009-08-08 16:03:28 +01:00
Michael Bienia
6d924143c0 requestsync: refactor 'checkNeedsSponsorship' 2009-08-07 14:07:46 +02:00
Michael Bienia
5748f9d64f requestsync: more refactoring 2009-08-07 13:27:45 +02:00
Michael Bienia
ba14d22954 requestsync: more refactoring 2009-08-07 12:53:33 +02:00
Michael Bienia
5e3e368bb8 requestsync: some more refactoring 2009-08-06 00:23:58 +02:00
Michael Bienia
a0f10bb410 Merge changes from my devel branch 2009-08-04 15:57:36 +02:00
Michael Bienia
54e9563e92 Replace LpApiWrapper.getUbuntuSourcePackage() with
Distribution('ubuntu').getArchive().getSourcePackage()
2009-08-04 15:53:49 +02:00
Michael Bienia
a49e4f6d43 Replace LpApiWrapper.getUbuntuDistribution() with Distribution('ubuntu') 2009-08-04 15:49:24 +02:00
Michael Bienia
74e55c2166 Rename lpapiwrapper.py to lpapicache.py as it describes its function better 2009-08-04 15:40:41 +02:00
Michael Bienia
b3b816515e lpapiwrapper.py: Move getMe() from LpApiWrapper to PersonTeam 2009-08-04 15:32:39 +02:00
Michael Bienia
fa0b10c274 requestsync: more refactoring 2009-08-04 14:24:04 +02:00
Michael Bienia
df881ec2da requestsync: refactor some code into its own module
and provide versions of the methods w/ and w/o LP API usage
2009-08-04 13:43:31 +02:00
Michael Bienia
4779d7b1a7 requestsync: remove unneeded modules 2009-08-04 12:44:17 +02:00
Michael Bienia
fcf86d2ad2 * lpapiwrapper.py:
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.
2009-07-22 13:43:53 +02:00
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