[koji PATCH 2/2] enable prefer-new functionality for single builds

Dan HorĂ¡k dan at danny.cz
Thu Jan 10 12:47:41 UTC 2013


When a tag is set for a single build we can search for a replacement of
a missing build.
---
 util/koji-shadow |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/util/koji-shadow b/util/koji-shadow
index 023511d..eddc68d 100755
--- a/util/koji-shadow
+++ b/util/koji-shadow
@@ -745,7 +745,7 @@ class BuildTracker(object):
                 if depth > 0:
                     print "%sDep replaced: %s->%s" % (head, build.nvr, replace)
                     return build
-            if options.prefer_new and (depth > 0) and not (options.build or build.state == "common"):
+            if options.prefer_new and (depth > 0) and (tag is not None) and not (build.state == "common"):
                 latestBuild = self.newerBuild(build, tag)
                 if latestBuild != None:
                     build.substitute = latestBuild.nvr
-- 
1.7.7.6



More information about the buildsys mailing list