From 9fdc75557224a93592d582ce3ecca2064218f02a Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Nov 09 2017 10:30:13 +0000 Subject: Image without parent image in LB and with less than 2 layers in LB means LB error too. --- diff --git a/freshmaker/lightblue.py b/freshmaker/lightblue.py index 235fed2..eb31002 100644 --- a/freshmaker/lightblue.py +++ b/freshmaker/lightblue.py @@ -678,7 +678,7 @@ class LightBlue(object): parent_build_layers_count) children_image_layers_count = parent_build_layers_count + 1 - if parent is None and children_image_layers_count > 2: + if parent is None and children_image_layers_count != 2: err = "Cannot find parent of image %s with layer %s " \ "and layer count %d in Lightblue, Lightblue data " \ "is probably incomplete" % ( @@ -783,7 +783,7 @@ class LightBlue(object): if parent: parent.resolve_content_sets(self) parent.resolve_commit(srpm_name) - elif len(layers) > 2: + elif len(layers) != 2: err = "Cannot find parent of image %s with layer %s " \ "and layer count %d in Lightblue, Lightblue data " \ "is probably incomplete" % (