~ubuntu-branches/debian/squeeze/bzr-builddeb/squeeze

« back to all changes in this revision

Viewing changes to launchpad.py

  • Committer: Bazaar Package Importer
  • Author(s): James Westby, Colin Watson, Jelmer Vernooij, James Westby
  • Date: 2010-03-18 14:19:53 UTC
  • Revision ID: james.westby@ubuntu.com-20100318141953-pn9m2235qt5s2y6g
Tags: 2.4.1
[ Colin Watson ]
* Consider a .dsc without a Format: to be Format: 1.0.

[ Jelmer Vernooij ]
* Fix use of getattr to have 3 arguments to avoid exception. (LP: #572093)

[ James Westby ]
* Fix for Launchpad's multi-version support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from bzrlib.trace import mutter
24
24
 
25
25
try:
26
 
    from launchpadlib.launchpad import Launchpad, EDGE_SERVICE_ROOT
 
26
    from launchpadlib.launchpad import Launchpad
27
27
    from launchpadlib.credentials import Credentials
 
28
    from launchpadlib.uris import LPNET_SERVICE_ROOT
28
29
    HAVE_LPLIB = True
29
30
except ImportError:
30
31
    HAVE_LPLIB = False
40
41
        creds.load(f)
41
42
    finally:
42
43
        f.close()
43
 
    lp = Launchpad(creds, EDGE_SERVICE_ROOT)
 
44
    lp = Launchpad(creds, service_root=LPNET_SERVICE_ROOT)
44
45
    return lp
45
46
 
46
47
 
51
52
    if lp is None:
52
53
        return []
53
54
    try:
54
 
        bug = lp.load("https://api.edge.launchpad.net/beta/bugs/"
55
 
                "bugtrackers/debbugs/%s")
 
55
        bug = lp.load(str(lp._root_uri) + "bugs/bugtrackers/debbugs/%s")
56
56
        tasks = bug.bug_tasks
57
57
        for task in tasks:
58
58
            if task.bug_target_name.endswith("(Ubuntu)"):