[koji PATCH 2/2] don't search for the latest build in the top-level run of scanBuild
Dan HorĂ¡k
dan at danny.cz
Tue Jan 8 09:47:25 UTC 2013
---
util/koji-shadow | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/util/koji-shadow b/util/koji-shadow
index 3ae2e85..4bbbd31 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 not (options.build or build.state == "common"):
+ if options.prefer_new and (depth > 0) and not (options.build or 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