--- cli/koji | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/cli/koji b/cli/koji index c74171c..64c5356 100755 --- a/cli/koji +++ b/cli/koji @@ -755,6 +755,9 @@ def handle_add_pkg(options, session, args): opts['block'] = False # check if list of packages exists for that tag already dsttag=session.getTag(tag) + if dsttag is None: + print "No such tag: %s" % tag + sys.exit(1) pkglist = dict([(p['package_name'], p['package_id']) for p in session.listPackages(tagID=dsttag['id'])]) ret = 0 for package in args[1:]:
On Friday, September 18, 2015 11:54:24 AM Mike McLean wrote:
cli/koji | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/cli/koji b/cli/koji index c74171c..64c5356 100755 --- a/cli/koji +++ b/cli/koji @@ -755,6 +755,9 @@ def handle_add_pkg(options, session, args): opts['block'] = False # check if list of packages exists for that tag already dsttag=session.getTag(tag)
- if dsttag is None:
print "No such tag: %s" % tag
pkglist = dict([(p['package_name'], p['package_id']) for p insys.exit(1)
session.listPackages(tagID=dsttag['id'])]) ret = 0 for package in args[1:]:
ACK
Dennis
koji-devel@lists.fedorahosted.org