[bitbake-devel] [PATCH 2/4] bitbake-layers: remove-layer: accept just layer directory

Christopher Larson clarson at kergoth.com
Wed Aug 19 17:51:35 UTC 2015


On Wed, Aug 19, 2015 at 6:20 AM, Paul Eggleton <
paul.eggleton at linux.intel.com> wrote:

> If the specified layer isn't a path, then just match on the directory.
>
> Fixes [YOCTO #7839].
>
> Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
> ---
>  bin/bitbake-layers | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/bin/bitbake-layers b/bin/bitbake-layers
> index a0227d4..1b4694b 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)
>

Shouldn't this check to see if args.layerdir is an existing path, instead?
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20150819/28160f5c/attachment-0002.html>


More information about the bitbake-devel mailing list