[Toaster] [PATCH] toaster: keep layer name in variable history path
Barros Pena, Belen
belen.barros.pena at intel.com
Wed Aug 31 03:42:30 PDT 2016
On 27/08/2016 02:23, "Reyna, David" <david.reyna at windriver.com> wrote:
>Hi all,
>
>
>I have posted a patch for
>8118 here:
>
>
>http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib?h=dreyna%2Fvarhist_
>layer_name_8188
This works for me. Good to see the layer name back: you really couldn't
tell what was going on before.
Cheers,
Belén
>
>
>The patch content is below.
>
>I did a git send mail, but I have not seen it reflect yet from the
>Toaster email list.
>
>
>
>- David
>
>
>
>
>
>From e281a3dc00ab531f6aef065bab81b4e66a8a5f63 Mon Sep 17 00:00:00 2001
>From: David Reyna <David.Reyna at windriver.com>
>Date: Fri, 26 Aug 2016 18:01:44 -0700
>Subject: toaster: keep layer name in variable history path
>
>When converting variable history file names to relative
>paths, keep the layer directory's name so that the user
>can distinguish between conf files with the same name.
>
>[YOCTO #8188]
>
>Signed-off-by: David Reyna <david.reyna at windriver.com>
>
>diff --git a/bitbake/lib/bb/ui/buildinfohelper.py
>b/bitbake/lib/bb/ui/buildinfohelper.py
>index 0f09b5c..96166dc 100644
>--- a/bitbake/lib/bb/ui/buildinfohelper.py
>+++ b/bitbake/lib/bb/ui/buildinfohelper.py
>@@ -1127,7 +1127,8 @@ class BuildInfoHelper(object):
> abs_file_name = vh['file']
> for pp in path_prefixes:
> if abs_file_name.startswith(pp + "/"):
>- vh['file']=abs_file_name[len(pp + "/"):]
>+ # preserve layer name in relative path
>+
>vh['file']=abs_file_name[pp.rfind("/")+1:]
> break
>
> # save the variables
>--
>cgit v0.10.2
>
>
>
More information about the toaster
mailing list