[OE-core] [PATCH 2/2] distro_identifier: replace slash with hyphen

Saul Wold sgw at linux.intel.com
Sun Oct 28 01:20:14 UTC 2012


On 10/26/2012 07:37 AM, Mihai Lindner wrote:
> Use "-" instead of "/" in "n/a" strings ("Distributor ID" and/or
> "Release"), provided by `lsb_release`.
> This leads to directories and subdirectories created in ./sstate-cache/
> e.g. Distro-n/a/ where "Distro-n" is dir and "a" is subdir.
>
> Signed-off-by: Mihai Lindner <mihaix.lindner at linux.intel.com>
> ---
>   meta/lib/oe/lsb.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/lib/oe/lsb.py b/meta/lib/oe/lsb.py
> index c8852a2..9133356 100644
> --- a/meta/lib/oe/lsb.py
> +++ b/meta/lib/oe/lsb.py
> @@ -31,4 +31,4 @@ def distro_identifier(adjust_hook=None):
>           distro_id, release = adjust_hook(distro_id, release)
>       if not distro_id:
>           return "Unknown"
> -    return '{0}-{1}'.format(distro_id, release).replace(' ','-')
> +    return '{0}-{1}'.format(distro_id, release).replace(' ','-').replace('/','-')
>

Merged into OE-Core

Thanks
	Sau!





More information about the Openembedded-core mailing list