Ver código fonte

bitbake-layers: remove-layer: accept just layer directory

If the specified layer isn't a path, then just match on the directory.

Fixes [YOCTO #7839].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Eggleton 8 anos atrás
pai
commit
b4c45bf6c4
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      bin/bitbake-layers

+ 2 - 0
bin/bitbake-layers

@@ -120,6 +120,8 @@ Removes the specified layer from bblayers.conf
 
         if args.layerdir.startswith('*'):
             layerdir = args.layerdir
+        elif not '/' in args.layerdir:
+            layerdir = '*/%s' % args.layerdir
         else:
             layerdir = os.path.abspath(args.layerdir)
         (_, notremoved) = bb.utils.edit_bblayers_conf(bblayers_conf, None, layerdir)