koji-gc: test existence of trashcan tag
Fixes: https://pagure.io/koji/issue/2190
This commit is contained in:
parent
c818da85b8
commit
919d189c2e
1 changed files with 2 additions and 0 deletions
|
|
@ -457,6 +457,8 @@ Build: %%(name)s-%%(version)s-%%(release)s
|
|||
|
||||
def main(args):
|
||||
activate_session(session)
|
||||
if not session.getTag(options.trashcan_tag, strict=False):
|
||||
error(_("Trashcan tag %s doesn't exist") % options.trashcan_tag)
|
||||
for x in options.action:
|
||||
globals()['handle_' + x]()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue