<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 19, 2015 at 6:20 AM, Paul Eggleton <span dir="ltr">&lt;<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":12y" class="a3s" style="overflow:hidden">If the specified layer isn&#39;t a path, then just match on the directory.<br>
<br>
Fixes [YOCTO #7839].<br>
<br>
Signed-off-by: Paul Eggleton &lt;<a href="mailto:paul.eggleton@linux.intel.com">paul.eggleton@linux.intel.com</a>&gt;<br>
---<br>
 bin/<span class="il">bitbake</span>-layers | 2 ++<br>
 1 file changed, 2 insertions(+)<br>
<br>
diff --git a/bin/<span class="il">bitbake</span>-layers b/bin/<span class="il">bitbake</span>-layers<br>
index a0227d4..1b4694b 100755<br>
--- a/bin/<span class="il">bitbake</span>-layers<br>
+++ b/bin/<span class="il">bitbake</span>-layers<br>
@@ -120,6 +120,8 @@ Removes the specified layer from bblayers.<span class="il">conf</span><br>
<br>
         if args.layerdir.startswith(&#39;*&#39;):<br>
             layerdir = args.layerdir<br>
+        elif not &#39;/&#39; in args.layerdir:<br>
+            layerdir = &#39;*/%s&#39; % args.layerdir<br>
         else:<br>
             layerdir = os.path.abspath(args.layerdir)<br>
         (_, notremoved) = <span class="il">bb</span>.utils.edit_bblayers_conf(bblayers_conf, None, layerdir)</div></blockquote></div><br>Shouldn&#39;t this check to see if args.layerdir is an existing path, instead?<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>