mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
buildcfg.py: add dirty status to get_metadata_git_describe
For postmortem analysis it's helpful to know if the build environment was clean or contained any modifications. (From OE-Core rev: edaaa2ad311663beabd2416037de00d82fca5fba) Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4e05e19c72
commit
8f9eaecb3e
@@ -52,7 +52,7 @@ def get_metadata_git_remote_url(path, remote):
|
|||||||
|
|
||||||
def get_metadata_git_describe(path):
|
def get_metadata_git_describe(path):
|
||||||
try:
|
try:
|
||||||
describe, _ = bb.process.run('git describe --tags', cwd=path)
|
describe, _ = bb.process.run('git describe --tags --dirty', cwd=path)
|
||||||
except bb.process.ExecutionError:
|
except bb.process.ExecutionError:
|
||||||
return ""
|
return ""
|
||||||
return describe.strip()
|
return describe.strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user