complain if the user does not exist

This commit is contained in:
Jay Greguske 2013-08-29 13:51:00 -04:00 committed by Mike McLean
parent c9620cf088
commit 1f80946689

View file

@ -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 = {}