-
-
Notifications
You must be signed in to change notification settings - Fork 379
Open
Labels
Description
Affected Version
yay v12.5.0 - libalpm v15.0.0
Describe the bug
Following paths seem to be expected by yay -Scc
and cause failure in clearing user home cache when non-existent
/var/cache/pacman/pkg/
/var/lib/pacman/
Reproduction Steps
- Use
tmpfs
forpacman
cache - Attempt to clear
yay
cache after a fresh boot - Question my life choices
Expected behavior
Expect yay
to check if pacman
cache directories exist prior to attempting to clear them
Output
- When no
pacman
cache directories existyay -Scc #> Cache directory: /var/cache/pacman/pkg/ #> :: Do you want to remove all other packages from cache? [Y/n] y #> removing old packages from cache... #> error: could not access cache directory /var/cache/pacman/pkg/ #> Database directory: /var/lib/pacman/ #> :: Do you want to remove unused repositories? [Y/n] y #> removing unused sync repositories... #> -> exit status 1
- When
pacman
cache directories do existyay -Scc #> Cache directory: /var/cache/pacman/pkg/ #> :: Do you want to remove ALL files from cache? [y/N] y #> removing all files from cache... #> #> Database directory: /var/lib/pacman/ #> :: Do you want to remove unused repositories? [Y/n] y #> removing unused sync repositories... #> #> Build directory: /home/s0ands0/.cache/yay #> :: Do you want to remove ALL AUR packages from cache? [Y/n] y #> removing AUR packages from cache...
Notes
Not really a big deal, I probably could've answered n
o to the first two pacman
related directories 🤷