Openembedded Core Discussions
 help / color / mirror / Atom feed
* [scripts][PATCH] yocto-layer: Stops duplication of "meta-" prefix
@ 2015-07-29 19:50 humberto.ibarra.lopez
  2015-07-30 13:28 ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: humberto.ibarra.lopez @ 2015-07-29 19:50 UTC (permalink / raw)
  To: openembedded-core

From: Humberto Ibarra <humberto.ibarra.lopez@intel.com>

The yocto-layer script puts an extra "meta-" prefix to the given layer
name even when the prefix is already there. This fix avoids
duplicating the prefix in these situations.

[YOCTO #8050]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
---
 scripts/yocto-layer | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/yocto-layer b/scripts/yocto-layer
index 53d2aab..0dbbf3b 100755
--- a/scripts/yocto-layer
+++ b/scripts/yocto-layer
@@ -74,6 +74,8 @@ def yocto_layer_create_subcommand(args, usage_str):
 
     if options.outdir:
         layer_output_dir = options.outdir
+    elif layer_name.startswith("meta-"):
+        layer_output_dir = layer_name
     else:
         layer_output_dir = "meta-" + layer_name
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-13 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-29 19:50 [scripts][PATCH] yocto-layer: Stops duplication of "meta-" prefix humberto.ibarra.lopez
2015-07-30 13:28 ` Burton, Ross
2015-07-30 15:59   ` Benjamin Esquivel
2015-08-13 18:22     ` Ibarra Lopez, Humberto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox