don't assume newRepo tag arg is a string

This commit is contained in:
Mike McLean 2014-09-19 11:43:36 -04:00
parent d5c80a254f
commit c9620cf088

View file

@ -3780,7 +3780,7 @@ class NewRepoTask(BaseTaskHandler):
#see if we can find a previous repo to update from
#only shadowbuild tags should start with SHADOWBUILD, their repos are auto
#expired. so lets get the most recent expired tag for newRepo shadowbuild tasks.
if tag.startswith('SHADOWBUILD'):
if tinfo['name'].startswith('SHADOWBUILD'):
oldrepo = self.session.getRepo(tinfo['id'], state=koji.REPO_EXPIRED)
else:
oldrepo = self.session.getRepo(tinfo['id'], state=koji.REPO_READY)