diff mbox series

buildcfg.py: add dirty status to get_metadata_git_describe

Message ID e167d13f366079c3e87ff26a34741c8dace0cd34.1725018060.git.joerg.sommer@navimatix.de
State Accepted, archived
Commit edaaa2ad311663beabd2416037de00d82fca5fba
Headers show
Series buildcfg.py: add dirty status to get_metadata_git_describe | expand

Commit Message

Jörg Sommer Aug. 30, 2024, 11:41 a.m. UTC
From: Jörg Sommer <joerg.sommer@navimatix.de>

For postmortem analysis it's helpful to know if the build environment was
clean or contained any modifications.

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
---
 meta/lib/oe/buildcfg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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):
 
 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()