dont error out on a tag failure.

This commit is contained in:
Dennis Gilmore 2012-02-09 15:10:51 -06:00
parent fa0b2cbbb6
commit 40c6c2c302

View file

@ -1233,8 +1233,12 @@ class BuildTracker(object):
def tagSuccessful(self, nvr, tag):
"""tag completed builds into final tags"""
session.tagBuildBypass(tag, nvr)
print "tagged %s to %s" % (nvr, tag)
#TODO: check if there are other reasons why tagging may fail and handle them
try:
session.tagBuildBypass(tag, nvr)
print "tagged %s to %s" % (nvr, tag)
except koji.TagError:
print "NOTICE: %s already tagged in %s" % (nvr, tag)
def main(args):