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.
This commit is contained in:
Iain Lane 2017-05-30 10:12:56 +01:00
parent 001d108b96
commit 4471193d9c

View File

@ -159,7 +159,8 @@ def main():
if op == "retry":
necessary_privs = me.canUploadPackage(ubuntu_archive, distroseries,
sources.getPackageName(),
sources.getComponent())
sources.getComponent(),
pocket=pocket)
if op in ('rescore', 'retry') and not necessary_privs:
print >> sys.stderr, ("You cannot perform the %s operation on a %s "