mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02: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):
|
||||
try:
|
||||
describe, _ = bb.process.run('git describe --tags', cwd=path)
|
||||
describe, _ = bb.process.run('git describe --tags --dirty', cwd=path)
|
||||
except bb.process.ExecutionError:
|
||||
return ""
|
||||
return describe.strip()
|
||||
|
||||
Reference in New Issue
Block a user