~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/codehosting/branchdistro.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-08 15:00:44 UTC
  • mfrom: (13139.3.19 bug-365098)
  • Revision ID: launchpad@pqm.canonical.com-20110608150044-22appycxz15bkafr
[r=bac][bug=365098] Allow distribution and archive owners as well as
 package uploader to set the official package branch link. Remove the
 ubuntu-branches celebrity.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
from canonical.config import config
31
31
from canonical.launchpad.interfaces.lpstorm import IMasterStore
32
 
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
33
32
from lp.code.enums import (
34
33
    BranchLifecycleStatus,
35
34
    BranchType,
347
346
            old_db_branch.registrant)
348
347
        new_db_branch.sourcepackage.setBranch(
349
348
            PackagePublishingPocket.RELEASE, new_db_branch,
350
 
            getUtility(ILaunchpadCelebrities).ubuntu_branches.teamowner)
 
349
            new_db_branch.owner)
351
350
        old_db_branch.lifecycle_status = BranchLifecycleStatus.MATURE
352
351
        # switch_branches *moves* the data to locations dependent on the
353
352
        # new_branch's id, so if the transaction was rolled back we wouldn't