diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-08-19 14:20:09 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-19 17:59:32 +0100 |
commit | b4c45bf6c42b4d319ba868f4ce77e86c8b585818 (patch) | |
tree | c76cd6de217554bbd30596437036e6bcf5aa8761 /bin | |
parent | ddcaf8950a0b1cc74806e1ad7b49a1de0ea0d2b1 (diff) | |
download | bitbake-b4c45bf6c42b4d319ba868f4ce77e86c8b585818.zip |
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-x | bin/bitbake-layers | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers index 1c0d520d..bd05c5f6 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) |