]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
buildcfg.py: add dirty status to get_metadata_git_describe
authorJörg Sommer <joerg.sommer@navimatix.de>
Fri, 30 Aug 2024 11:41:00 +0000 (13:41 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 1 Sep 2024 07:19:12 +0000 (08:19 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/buildcfg.py

index 27b059b8343142c019f1360eab8fb2153f1463d3..4b22f18f3659dce8cb6f4af0b67ed37481029397 100644 (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()