mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-24 06:05:08 +02:00
Only query pacman when on arch and not a snap install. (#173)
This commit is contained in:
parent
efd03a1d16
commit
50b1e48115
@ -60,8 +60,6 @@ dist_name = distro.id()
|
|||||||
# display running version of auto-cpufreq
|
# display running version of auto-cpufreq
|
||||||
def app_version():
|
def app_version():
|
||||||
|
|
||||||
aur_pkg_check = call("pacman -Qs auto-cpufreq > /dev/null", shell=True)
|
|
||||||
|
|
||||||
print("auto-cpufreq version:")
|
print("auto-cpufreq version:")
|
||||||
|
|
||||||
# snap package
|
# snap package
|
||||||
@ -69,6 +67,7 @@ def app_version():
|
|||||||
print(getoutput("echo Snap: $SNAP_VERSION"))
|
print(getoutput("echo Snap: $SNAP_VERSION"))
|
||||||
# aur package
|
# aur package
|
||||||
elif dist_name in ["arch", "manjaro", "garuda"]:
|
elif dist_name in ["arch", "manjaro", "garuda"]:
|
||||||
|
aur_pkg_check = call("pacman -Qs auto-cpufreq > /dev/null", shell=True)
|
||||||
if aur_pkg_check == 1:
|
if aur_pkg_check == 1:
|
||||||
print("Git commit:", check_output(["git", "describe", "--always"]).strip().decode())
|
print("Git commit:", check_output(["git", "describe", "--always"]).strip().decode())
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user