~ubuntu-branches/debian/sid/ubuntu-dev-tools/sid

« back to all changes in this revision

Viewing changes to ubuntutools/requestsync/lp.py

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung, Colin Watson, Jelmer Vernooij, Stefano Rivera, Julian Taylor, Benjamin Drung
  • Date: 2011-09-06 14:31:31 UTC
  • Revision ID: package-import@ubuntu.com-20110906143131-pukbbowpabmw4w42
Tags: 0.129
[ Colin Watson ]
* syncpackage: Convert to new LP API, with --no-lp available for the old
  style of operation.
* syncpackage: Require -f/--force option to overwrite Ubuntu changes.

[ Jelmer Vernooij ]
* Remove several tools not specific to Ubuntu that have been migrated to
  lptools (LP: #708886):
 - get-branches (renamed to lp-get-branches)
 - grab-attachments (renamed to lp-grab-attachments)
 - lp-project-upload
 - lp-list-bugs
 - lp-set-dup
 - lp-shell

[ Stefano Rivera ]
* syncpackage: Show changes to be synced when performing native syncs.
* syncpackage: Check the sync blacklist.
* syncpackage: Support --bug (extra bugs to be closed by the sync) with
  native syncs. (Bugs are closed one individually, via the API, post-sync)
* dgetlp, submittodebian, 404main: Use unicode strings for literal strings
  containing non-ASCII characters (LP: #836661)
* Recommend pbuilder | aptitude for get-build-deps, and exit with an error
  if neither are installed (LP: #799368)
* get-build-deps: Tell aptitude not to follow Recommends (LP: #817500)
* doc/requestsync.1: Document the -C option (LP: #833408)
* ubuntutools.archive: Don't write .dsc files until we pull the entire
  source package, just hold it in memory. Avoids littering the current
  directory (LP: #838361)
* Run harvest as part of sponsor-patch (LP: #833699)

[ Julian Taylor ]
* requestsync: omit dups when checking for duplicate requests (LP: #842217)

[ Benjamin Drung ]
* sponsor-patch: Default to not upload the package.
* requestsync: Do not crash on user abort (Closes: #637168).

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
    return debian_archive.getSourcePackage(name, release)
36
36
 
37
 
def getUbuntuSrcPkg(name, release):
 
37
def getUbuntuSrcPkg(name, release, pocket='Release'):
38
38
    ubuntu = Distribution('ubuntu')
39
39
    ubuntu_archive = ubuntu.getArchive()
40
40
 
41
 
    return ubuntu_archive.getSourcePackage(name, release)
 
41
    return ubuntu_archive.getSourcePackage(name, release, pocket)
42
42
 
43
43
def needSponsorship(name, component, release):
44
44
    '''
69
69
 
70
70
    # Fetch the package's bug list from Launchpad
71
71
    pkg = Distribution('ubuntu').getSourcePackage(name = srcpkg)
72
 
    pkgBugList = pkg.getBugTasks()
 
72
    pkgBugList = pkg.searchTasks(status=["Incomplete", "New", "Confirmed",
 
73
                                         "Triaged", "In Progress", "Fix Committed"],
 
74
                                 omit_duplicates=True)
73
75
 
74
76
    # Search bug list for other sync requests.
75
77
    for bug in pkgBugList: