190 Commits

Author SHA1 Message Date
Michael Bienia
95a8fdecb2 requestsync: Subscribe 'ubuntu-release' to Feature Freeze exceptions (updated
to current policy; lp: #532740)
2010-03-05 17:59:46 +01:00
Michael Bienia
1cfe684420 requestsync:
* Add an error message when Ubuntu has a newer version than Debian.
2010-02-20 18:36:12 +01:00
Michael Bienia
0dfe4b4731 ubuntutools/lp/lpapicache.py:
* PersonTeam.canUploadPackage() can now also check package sets for upload
  permissions. This requires now to also pass the distroseries as package sets
  are per distroseries.
* Drop PersonTeam.isPerPackageUploader() as it's also handled by canUploadPackage()
ubuntu-build: Update for the PersonTeam.canUploadChange().
ubuntutools/requestsync/{lp,mail}.py:
* needSponsorship() now also expects a release name because of the above mentioned
  change to PersonTeam.canUploadPackage().
requestsync: Update for needSponsorship() change.
2010-02-20 15:48:48 +01:00
Kees Cook
07451d8631 requestsync: add -C to allow manually adding changelog when missing
(LP: #518574).
2010-02-08 11:55:58 -08:00
Kees Cook
233ceb06b9 requestsync: add -C to allow manually adding changelog when missing. 2010-02-08 10:12:55 -08:00
Michael Bienia
5bd544b63c requestsync: Use '~' as the Ubuntu version for new packages (it's lower
than '0~0').
2010-01-06 01:30:40 +01:00
Michael Bienia
65762755c0 * requestsync: Fix a bug that prevented sync requests for new packages with
a version smaller than 0.
2009-12-31 13:16:32 +01:00
Iain Lane
6db05720f3 Conditional LP API usage & better p-l-s errors
* lpapicache: Do not immediately bail out if we have no credentials to
  login. Clients are now expected to handle the lack of credentials
  themselves.
* pull-lp-source: Make LP API use optional - fall back to a hardcoded
  default release if we aren't using it. (LP: #477670)
* pull-lp-source: Detect more failure conditions and give a nice error
  instead of a trace
* buildd, requestsync: Detect & bail if we don't have credentials and need
  them. These scripts cannot continue under those circumstances.
2009-11-07 19:20:46 +00:00
Michael Bienia
87660fb375 requestsync: request syncs from 'testing' by default
(should be changed back to 'unstable' for lucid+1)
2009-11-02 19:03:18 +01:00
Iain Lane
dac4145893 requestsync: Give an error message if no changelog entries - happens if,
for example, the new package's changelog hasn't yet been published on p.d.o
2009-09-21 00:41:11 +01:00
Michael Bienia
82899a0f45 bug fixes 2009-08-25 13:02:57 +02:00
Michael Bienia
f284ee7cd6 requestsync: cleanup 2009-08-23 13:08:22 +02:00
Michael Bienia
966ab3727a requestsync: reindent remaining code and small cleanup 2009-08-22 18:34:22 +02:00
Michael Bienia
5448add754 requestsync: make a "mail" and "lp" version of checkExistingReports and move
it to the correct module
2009-08-22 17:39:38 +02:00
Michael Bienia
e628bfbe34 requestsync:
- move mail_bug() to ubuntutools.requestsync.mail
 - implement support for UBU* environment variables (lp: #400133)
2009-08-22 17:12:55 +02:00
Michael Bienia
ec92bb5d75 requestsync: move the remaining code of cur_version_component() into the
__main__ code.
2009-08-22 11:59:22 +02:00
Michael Bienia
ea3c45cb16 Merge from devel branch. 2009-08-22 11:40:43 +02:00
Iain Lane
d9dd366665 * requestsync:
- Guard some calls when -n is specified
  - Fetch changelog of specified version, not current version. If an
    experimenal upload happened after the unstable one we're syncing, this
    is considered to be current by p.d.o and we would get those changelog
    entries in the sync request
  - Remove trailing fullstop from sync bug title
2009-08-17 12:02:35 +01:00
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