Files
nixpkgs/pkgs/by-name/aa/aab/only-call-git-when-necessary.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

15 lines
726 B
Diff

diff --git a/aab/builder.py b/aab/builder.py
index 5c3805c..a181b27 100644
--- a/aab/builder.py
+++ b/aab/builder.py
@@ -67,8 +67,7 @@ class AddonBuilder:
self._version = Git().parse_version(version)
# git stash create comes up empty when no changes were made since the
# last commit. Don't use 'dev' as version in these cases.
- git_status = call_shell("git status --porcelain")
- if self._version == "dev" and git_status == "":
+ if self._version == "dev" and call_shell("git status --porcelain") == "":
self._version = Git().parse_version("current")
if not self._version:
logging.error("Error: Version could not be determined through Git")