aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/ui
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2016-09-05 15:29:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-06 10:35:24 +0100
commit59561d652af91c2099b735084f0e44275d68e637 (patch)
tree25deb2afa07b8ea0ed3b68ff7d794e53db6bc683 /lib/bb/ui
parent146f6f95a8753308edb31e952d7c440c8de11870 (diff)
downloadbitbake-contrib-59561d652af91c2099b735084f0e44275d68e637.tar.gz
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@windriver.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui')
-rw-r--r--lib/bb/ui/buildinfohelper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index 0f09b5cb6..96166dc51 100644
--- a/lib/bb/ui/buildinfohelper.py
+++ b/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