complain if the user does not exist
This commit is contained in:
parent
c9620cf088
commit
1f80946689
1 changed files with 3 additions and 0 deletions
3
cli/koji
3
cli/koji
|
|
@ -760,6 +760,9 @@ def handle_add_pkg(options, session, args):
|
|||
if not options.owner:
|
||||
parser.error(_("Please specify an owner for the package(s)"))
|
||||
assert False
|
||||
if not session.getUser(options.owner):
|
||||
print "User %s does not exist" % options.owner
|
||||
return 1
|
||||
activate_session(session)
|
||||
tag = args[0]
|
||||
opts = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue