]> code.ossystems Code Review - openembedded-core.git/commitdiff
yocto-check-layer: Remove duplicated code
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Jul 2021 09:53:57 +0000 (10:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Jul 2021 15:33:42 +0000 (16:33 +0100)
Nicolas Dechesne spotted there was duplicate code I had introduced with a
previous fix. Remove the second statement since the earlier one is correct
all that is needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/yocto-check-layer

index 44e77b73d0d9f39eaf9a4a7ae511a8fa18338530..05494e752ca80d60b67227e264185214eb535599 100755 (executable)
@@ -152,8 +152,6 @@ def main():
         logger.info("Setting up for %s(%s), %s" % (layer['name'], layer['type'],
             layer['path']))
 
-        shutil.copyfile(bblayersconf + '.backup', bblayersconf)
-
         missing_dependencies = not add_layer_dependencies(bblayersconf, layer, dep_layers, logger)
         if not missing_dependencies:
             for additional_layer in additional_layers: