mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
21 lines
753 B
Diff
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
|