7f2ec624dd
* auto-cpufreq: 1.7.1 -> 1.9.9 * fix test * set `meta.buildDocsInSandbox = false` required because description depends on restricted module argument pkgs
33 lines
No EOL
1.2 KiB
Diff
33 lines
No EOL
1.2 KiB
Diff
diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py
|
|
index 99397a9..f3ef28f 100755
|
|
--- a/auto_cpufreq/core.py
|
|
+++ b/auto_cpufreq/core.py
|
|
@@ -144,26 +144,10 @@ except PermissionError:
|
|
|
|
# display running version of auto-cpufreq
|
|
def app_version():
|
|
+ print("auto-cpufreq version: @version@")
|
|
+ print("Git commit: v@version@")
|
|
|
|
- print("auto-cpufreq version: ", end="")
|
|
|
|
- # snap package
|
|
- if os.getenv("PKG_MARKER") == "SNAP":
|
|
- print(getoutput("echo \(Snap\) $SNAP_VERSION"))
|
|
- # aur package
|
|
- elif dist_name in ["arch", "manjaro", "garuda"]:
|
|
- aur_pkg_check = call("pacman -Qs auto-cpufreq > /dev/null", shell=True)
|
|
- if aur_pkg_check == 1:
|
|
- print(get_formatted_version())
|
|
- else:
|
|
- print(getoutput("pacman -Qi auto-cpufreq | grep Version"))
|
|
- else:
|
|
- # source code (auto-cpufreq-installer)
|
|
- try:
|
|
- print(get_formatted_version())
|
|
- except Exception as e:
|
|
- print(repr(e))
|
|
- pass
|
|
def verify_update():
|
|
# Specify the repository and package name
|
|
# IT IS IMPORTANT TO THAT IF THE REPOSITORY STRUCTURE IS CHANGED, THE FOLLOWING FUNCTION NEEDS TO BE UPDATED ACCORDINGLY
|