From 8f9eaecb3e6c60d517ba9a163980315aaa3fecbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?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=UTF-8 Content-Transfer-Encoding: 8bit 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 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 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()