don't assume newRepo tag arg is a string
This commit is contained in:
parent
d5c80a254f
commit
c9620cf088
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue