summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-22 10:53:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-10 11:14:11 +0100
commitaabe9c0f70ea9217a4fadbcca34d1b5331dd7a10 (patch)
tree35691198f68b29ba79afaf881a230e2a17cfffcd /scripts
parenta930008acb77411d6bf7e34263664197d879eb41 (diff)
downloadpoky-aabe9c0f70ea9217a4fadbcca34d1b5331dd7a10.tar.gz
yocto-check-layer: Remove duplicated code
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. (From OE-Core rev: aa8e0928bda4a01623552084fc0ac0658e495b53) 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> (cherry picked from commit f3e8d9f0e53e73de5498fccce81d049a88f6473b) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/yocto-check-layer2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer
index deba3cb4f8..84fb0011e9 100755
--- a/scripts/yocto-check-layer
+++ b/scripts/yocto-check-layer
@@ -152,8 +152,6 @@ def main():
152 logger.info("Setting up for %s(%s), %s" % (layer['name'], layer['type'], 152 logger.info("Setting up for %s(%s), %s" % (layer['name'], layer['type'],
153 layer['path'])) 153 layer['path']))
154 154
155 shutil.copyfile(bblayersconf + '.backup', bblayersconf)
156
157 missing_dependencies = not add_layer_dependencies(bblayersconf, layer, dep_layers, logger) 155 missing_dependencies = not add_layer_dependencies(bblayersconf, layer, dep_layers, logger)
158 if not missing_dependencies: 156 if not missing_dependencies:
159 for additional_layer in additional_layers: 157 for additional_layer in additional_layers: