Skip to content

Commit e173723

Browse files
authored
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)
1 parent 674b3c4 commit e173723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/auto-cpufreq

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def main(config, daemon, debug, update, install, remove, live, log, monitor, sta
232232

233233
print("Please update using snap package manager, i.e: `sudo snap refresh auto-cpufreq`.")
234234
#check for AUR
235-
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:
235+
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:
236236
print("Arch-based distribution with AUR support detected. Please refresh auto-cpufreq using your AUR helper.")
237237
else:
238238
verify_update()

0 commit comments

Comments
 (0)