Files
nixpkgs/pkgs/by-name/au/auto-cpufreq/fix-version-output.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

21 lines
753 B
Diff

diff --git c/auto_cpufreq/core.py i/auto_cpufreq/core.py
index b51d55d..b0bff1e 100755
--- c/auto_cpufreq/core.py
+++ i/auto_cpufreq/core.py
@@ -96,13 +96,8 @@ except PermissionError:
# display running version of auto-cpufreq
def app_version():
- print("auto-cpufreq version: ", end="")
-
- if IS_INSTALLED_WITH_SNAP: print(getoutput(r"echo \(Snap\) $SNAP_VERSION"))
- elif IS_INSTALLED_WITH_AUR: print(getoutput("pacman -Qi auto-cpufreq | grep Version"))
- else:
- try: print(get_formatted_version())
- except Exception as e: print(repr(e))
+ print("auto-cpufreq version: @version@")
+ print("Git commit: v@version@")
def check_for_update():
# returns True if a new release is available from the GitHub repo