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:
Jörg Sommer
2024-09-01 11:05:20 +01:00
committed by Richard Purdie
parent 4e05e19c72
commit 8f9eaecb3e
+1 -1
View File
@@ -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()