drop shadowbuild case in newRepo
repos from specific events are no longer immediately expired
This commit is contained in:
parent
e3707bed7a
commit
528c14ac9b
1 changed files with 1 additions and 6 deletions
|
|
@ -5863,12 +5863,7 @@ class NewRepoTask(BaseTaskHandler):
|
|||
if fn != 'groups' and os.path.isfile("%s/%s/pkglist" % (path, fn)):
|
||||
arches.append(fn)
|
||||
# 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 tinfo['name'].startswith('SHADOWBUILD'):
|
||||
oldrepo_state = koji.REPO_EXPIRED
|
||||
else:
|
||||
oldrepo_state = koji.REPO_READY
|
||||
oldrepo_state = koji.REPO_READY
|
||||
oldrepo = self.session.getRepo(tinfo['id'], state=oldrepo_state)
|
||||
oldrepo_path = None
|
||||
if oldrepo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue