Skip to content

actions: clean cache of every installed AUR helper - #302

Open
Rockykln wants to merge 1 commit into
CachyOS:developfrom
Rockykln:fix-aur-cache-clean
Open

Rockykln wants to merge 1 commit into
CachyOS:developfrom
Rockykln:fix-aur-cache-clean

Conversation

@Rockykln

Copy link
Copy Markdown

Fixes #202

clear_pkgcache only ran -Sc for the first AUR helper it found (pak, yay, paru in that order). With yay and paru both installed, only yay's cache got cleaned and paru's build cache was never touched.

It now runs -Sc for every installed helper and still falls back to pacman -Sc when none is installed. Since each helper also cleans the pacman cache, that prompt shows up once per helper.

Tested with yay and paru installed: both caches are cleaned one after the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Clear package cache" does not clear the AUR cache

1 participant