[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2314/8267] bitbake: toaster: keep layer name in variable history path



commit 36fe74895746f6249bd136786334cf24c53b7da9
Author: David Reyna <David Reyna windriver com>
Date:   Mon Sep 5 15:29:28 2016 +0100

    bitbake: 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]
    
    (Bitbake rev: 59561d652af91c2099b735084f0e44275d68e637)
    
    Signed-off-by: David Reyna <david reyna windriver com>
    Signed-off-by: Michael Wood <michael g wood intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 bitbake/lib/bb/ui/buildinfohelper.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]