From edaaa2ad311663beabd2416037de00d82fca5fba Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Sommer?= Date: Fri, 30 Aug 2024 13:41:00 +0200 Subject: [PATCH] buildcfg.py: add dirty status to get_metadata_git_describe MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- meta/lib/oe/buildcfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.47.2