When koji-shadow is run in the prefer-new mode the number of missing builds can
be non-zero. Let koji-shadow finish when there are no pending builds in this case.
---
util/koji-shadow | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/util/koji-shadow b/util/koji-shadow
index 6d844b3..9fb66a7 100755
--- a/util/koji-shadow
+++ b/util/koji-shadow
@@ -1220,7 +1220,8 @@ class BuildTracker(object):
initial_avail = len(self.state_idx['common'])
self.report_brief()
while True:
- if not self.state_idx['missing'] and not
self.state_idx['pending']:
+ if (not self.state_idx['missing'] and not
self.state_idx['pending']) or \
+ (options.prefer_new and not self.state_idx['pending']):
#we're done
break
changed1 = self.checkJobs(tag)
--
1.7.7.6