if we are scanning a build we can not use prefer new so make sure we dont.

This commit is contained in:
Dennis Gilmore 2009-06-26 10:09:51 -05:00 committed by Dennis Gilmore
parent 2da42499e3
commit 08e911dac7

View file

@ -717,7 +717,7 @@ class BuildTracker(object):
if depth > 0:
print "%sDep replaced: %s->%s" % (head, build.nvr, replace)
return build
if options.prefer_new:
if options.prefer_new and not options.build:
latestBuild = self.newerBuild(build, tag)
if latestBuild != None:
build.substitute = latestBuild.nvr