implement --allow-unsigned and --skip-unsigned

This commit is contained in:
Jay Greguske 2015-12-07 14:00:16 -05:00 committed by Mike McLean
parent f1a45e0024
commit 08259b426e
4 changed files with 47 additions and 14 deletions

View file

@ -4928,10 +4928,9 @@ class NewSignedRepoTask(BaseTaskHandler):
Methods = ['signedRepo']
_taskWeight = 0.1
def handler(self, tag, repo_id):
def handler(self, tag, repo_id, task_opts):
# TODO: remember to use an event here
tinfo = self.session.getTag(tag, strict=True)
kwargs = {}
path = koji.pathinfo.signedrepo(repo_id, tinfo['name'])
if not os.path.isdir(path):
raise koji.GenericError, "Repo directory missing: %s" % path