From e173723f24ce1a1029032d7f27894e69c790ff3b Mon Sep 17 00:00:00 2001 From: Lab Rat <35325046+rootCircle@users.noreply.github.com> Date: Sun, 10 Sep 2023 11:53:29 +0000 Subject: [PATCH] fixup: updates on arch based distros will be based if auto-cpufreq is installed from AUR or not! Changes also removal of yay checking as yay is pacman wrapper. https://wiki.archlinux.org/title/AUR_helpers (#550) --- bin/auto-cpufreq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/auto-cpufreq b/bin/auto-cpufreq index b89d925b..475534a2 100755 --- a/bin/auto-cpufreq +++ b/bin/auto-cpufreq @@ -232,7 +232,7 @@ def main(config, daemon, debug, update, install, remove, live, log, monitor, sta print("Please update using snap package manager, i.e: `sudo snap refresh auto-cpufreq`.") #check for AUR - elif subprocess.run(["bash", "-c", "command -v yay >/dev/null 2>&1"]).returncode == 0 or subprocess.run(["bash", "-c", "command -v pacman >/dev/null 2>&1"]).returncode == 0: + elif subprocess.run(["bash", "-c", "command -v pacman >/dev/null 2>&1"]).returncode == 0 and subprocess.run(["bash", "-c", "pacman -Q auto-cpufreq >/dev/null 2>&1"]).returncode == 0: print("Arch-based distribution with AUR support detected. Please refresh auto-cpufreq using your AUR helper.") else: verify_update()