]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: default plugin type directory should be added only once
authorJoão Henrique Ferreira de Freitas <joaohf@gmail.com>
Wed, 4 Jun 2014 01:28:02 +0000 (22:28 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Jun 2014 09:29:22 +0000 (10:29 +0100)
Fix 'for' statement identention so plugin type directory will be
added only once in layers_dirs list.

No functional changes.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/mic/plugin.py

index bec33d61646dfe02a6fb0dae234155841e2e1c02..dec0e5bf8498df933ad3171cd48970ab9a234abd 100644 (file)
@@ -57,8 +57,8 @@ class PluginMgr(object):
             path = os.path.join(layer_path, SCRIPTS_PLUGIN_DIR, ptype)
             layer_dirs.append(path)
 
-            path = os.path.join(dl, ptype)
-            layer_dirs.append(path)
+        path = os.path.join(dl, ptype)
+        layer_dirs.append(path)
 
         return layer_dirs