From: Jörg Sommer Date: Fri, 30 Aug 2024 11:41:00 +0000 (+0200) Subject: buildcfg.py: add dirty status to get_metadata_git_describe X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edaaa2ad311663beabd2416037de00d82fca5fba;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Jörg Sommer Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/buildcfg.py b/meta/lib/oe/buildcfg.py index 27b059b8343..4b22f18f365 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()