~ubuntu-dev/ubuntu-dev-tools/trunk

« back to all changes in this revision

Viewing changes to ubuntu-build

  • Committer: Iain Lane
  • Date: 2017-05-30 08:27:42 UTC
  • Revision ID: laney@ubuntu.com-20170530082742-xnq3eior8a15qz4r
ubuntu-build: Pass the pocket through to the archive permission check, so
that we can retry builds in releases where the release pocket is frozen -
for example so that backporters can retry backports builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
        if op == "retry":
159
159
            necessary_privs = me.canUploadPackage(ubuntu_archive, distroseries,
160
160
                                                  sources.getPackageName(),
161
 
                                                  sources.getComponent())
 
161
                                                  sources.getComponent(),
 
162
                                                  pocket=pocket)
162
163
 
163
164
        if op in ('rescore', 'retry') and not necessary_privs:
164
165
            print >> sys.stderr, ("You cannot perform the %s operation on a %s "