mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
classes/buildcfg: Move git/layer revision code into new OE module buildcfg
There is a load of duplicated git/layer/revision code which makes most sesne as a python library, not bbclass code. Start to refactor as such. (From OE-Core rev: 439cdf8a1e52fd2c4dc81dc40ce7e6af282ce7ac) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -761,8 +761,8 @@ 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), \
|
||||
base_get_metadata_git_branch(i, None).strip(), \
|
||||
base_get_metadata_git_revision(i, None), \
|
||||
oe.buildcfg.get_metadata_git_branch(i, None).strip(), \
|
||||
oe.buildcfg.get_metadata_git_revision(i, None), \
|
||||
buildhistory_get_modified(i)) \
|
||||
for i in layers]
|
||||
return '\n'.join(medadata_revs)
|
||||
|
||||
Reference in New Issue
Block a user