summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2016-03-11 21:49:14 -0500
committerMartin Jansa <Martin.Jansa@gmail.com>2020-05-27 15:07:33 +0200
commitfd1cc2ff6e1e720b988ed45c64ae5a104c34f672 (patch)
tree502b9215d14eec7b9c482f6cb69706e86c3bc634
parent68d713df5cb3e5619c77ba0230c2bb8c8cb87c92 (diff)
downloadopenembedded-core-contrib-fd1cc2ff6e1e720b988ed45c64ae5a104c34f672.tar.gz
openembedded-core-contrib-fd1cc2ff6e1e720b988ed45c64ae5a104c34f672.tar.bz2
openembedded-core-contrib-fd1cc2ff6e1e720b988ed45c64ae5a104c34f672.zip
buildhistory.bbclass: metadata-revs show repo parent
Currently my build shows two "meta" repositories: one from meta-poky and one from openembedded-core. Have the code which prints the repositories into metadata-revs show the parent directories when repositories with multiple sub-layers are used. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta/classes/buildhistory.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 796f68cf8f..19d434fa06 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -691,7 +691,7 @@ def buildhistory_get_modified(path):
def buildhistory_get_metadata_revs(d):
# We want an easily machine-readable format here, so get_layers_branch_rev isn't quite what we want
layers = (d.getVar("BBLAYERS") or "").split()
- medadata_revs = ["%-17s = %s:%s%s" % (os.path.basename(i), \
+ medadata_revs = ["%-17s = %s:%s%s" % (os.path.relpath(i, d.getVar('BBLAYERS_FETCH_DIR')), \
base_get_metadata_git_branch(i, None).strip(), \
base_get_metadata_git_revision(i, None), \
buildhistory_get_modified(i)) \