drop shadowbuild case in newRepo

repos from specific events are no longer immediately expired
This commit is contained in:
Mike McLean 2024-06-24 11:17:31 -04:00
parent e3707bed7a
commit 528c14ac9b

View file

@ -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: