Skip to content

Commit

Permalink
fixup: updates on arch based distros will be based if auto-cpufreq is…
Browse files Browse the repository at this point in the history
… installed from AUR or not! Changes also removal of yay checking as yay is pacman wrapper. https://wiki.archlinux.org/title/AUR_helpers
  • Loading branch information
rootCircle committed Sep 9, 2023
1 parent 674b3c4 commit f0ebdf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/auto-cpufreq
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f0ebdf3

Please sign in to comment.