summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorJörg Sommer <joerg.sommer@navimatix.de>2024-08-30 13:41:00 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-09-01 11:05:20 +0100
commit8f9eaecb3e6c60d517ba9a163980315aaa3fecbc (patch)
tree7345e1c69270556ba3a3a38b96d7656371b6b9d5 /meta/lib/oe
parent4e05e19c72c7062c837d6456c9ac619dd9075335 (diff)
downloadpoky-8f9eaecb3e6c60d517ba9a163980315aaa3fecbc.tar.gz
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>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/buildcfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/buildcfg.py b/meta/lib/oe/buildcfg.py
index 27b059b834..4b22f18f36 100644
--- a/meta/lib/oe/buildcfg.py
+++ b/meta/lib/oe/buildcfg.py
@@ -52,7 +52,7 @@ def get_metadata_git_remote_url(path, remote):
52 52
53def get_metadata_git_describe(path): 53def get_metadata_git_describe(path):
54 try: 54 try:
55 describe, _ = bb.process.run('git describe --tags', cwd=path) 55 describe, _ = bb.process.run('git describe --tags --dirty', cwd=path)
56 except bb.process.ExecutionError: 56 except bb.process.ExecutionError:
57 return "" 57 return ""
58 return describe.strip() 58 return describe.strip()