1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00

adaptation to the new build system + fixes

This commit is contained in:
Eng1n33r
2022-06-26 20:57:29 +03:00
parent aaeede7793
commit 1c55a55ddd
28 changed files with 173 additions and 868 deletions

View File

@@ -32,10 +32,10 @@ class GitVersion:
branch_num = self._exec_git("rev-list --count HEAD") or "n/a"
try:
version = self._exec_git("describe --tags --abbrev=0 --exact-match")
except subprocess.CalledProcessError:
version = "unknown"
version = (
os.environ.get("DIST_SUFFIX", None)
or "unknown"
)
return {
"GIT_COMMIT": commit,