| |
@@ -6339,6 +6339,13 @@
|
| |
last_repo = None
|
| |
|
| |
while True:
|
| |
+ try:
|
| |
+ taginfo = self.session.getTag(tag, strict=True)
|
| |
+ except koji.GenericError:
|
| |
+ self.logger.debug("Tag %s got lost while waiting for newrepo", tag)
|
| |
+ raise koji.GenericError("Unsuccessfully waited %s for %s repo. "
|
| |
+ "Tag was probably deleted meanwhile." %
|
| |
+ (koji.util.duration(start), tag))
|
| |
repo = self.session.getRepo(taginfo['id'])
|
| |
if repo and repo != last_repo:
|
| |
if builds:
|
| |
Expanded PR #2416
Fixes: https://pagure.io/koji/issue/2414