From fc389f7e708828c92c6f2b22974035a7603c4d88 Mon Sep 17 00:00:00 2001 From: Dan HorĂ¡k Date: Mar 06 2016 09:20:28 +0000 Subject: koji-shadow: mark builds without buildroot info as noroot Due bugs in used tools mainline koji instance could store empty buildroot infos for builds. --- diff --git a/util/koji-shadow b/util/koji-shadow index 3b62776..f6a8f7f 100755 --- a/util/koji-shadow +++ b/util/koji-shadow @@ -550,6 +550,9 @@ class TrackedBuild(object): tag = counts[-1][1] else: tag = tags.keys()[0] + # due bugs in used tools mainline koji instance could store empty buildroot infos for builds + if len(builds) == 0: + self.setState("noroot") self.deps = builds self.revised_deps = None #BuildTracker will set this later self.br_tag = tag