summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-08-19 14:20:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-19 17:59:32 +0100
commitb4c45bf6c42b4d319ba868f4ce77e86c8b585818 (patch)
treec76cd6de217554bbd30596437036e6bcf5aa8761 /bin
parentddcaf8950a0b1cc74806e1ad7b49a1de0ea0d2b1 (diff)
downloadbitbake-b4c45bf6c42b4d319ba868f4ce77e86c8b585818.tar.gz
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>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-layers2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 1c0d520d1..bd05c5f69 100755
--- a/bin/bitbake-layers
+++ b/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)