add unit test. drop redundant call arg

This commit is contained in:
Mike McLean 2024-07-08 13:00:43 -04:00 committed by Tomas Kopecek
parent 1dee091b78
commit 0d9777b785
2 changed files with 174 additions and 2 deletions

View file

@ -5837,8 +5837,7 @@ class NewRepoTask(BaseTaskHandler):
return None, None
# see if we can find a previous repo to update from
oldrepo_state = koji.REPO_READY
oldrepo = self.session.getRepo(tinfo['id'], state=oldrepo_state)
oldrepo = self.session.getRepo(tinfo['id'])
oldrepo_path = None
if oldrepo:
oldrepo_path = koji.pathinfo.repo(oldrepo['id'], tinfo['name'])