yay
yay copied to clipboard
Error clearing package cache in ~/.cache/yay/ if localization is not English
Affected Version
yay v11.1.1 - libalpm v13.0.1
Describe the bug
The cache is not cleared if the system locale is not latin.
Spoiler
.cache/yay » pwd
/home/user/.cache/yay
.cache/yay » ls
completion.cache vcs.json yay-git
.cache/yay » yay -Scc
Каталог для кэша: /var/cache/pacman/pkg/
:: Удалить ВСЕ файлы из кэша? [y/N] y
удаление всех файлов из кэша...
Каталог базы данных: /var/lib/pacman/
:: Удалить неиспользуемые репозитории? [Y/n] y
удаление неиспользуемых репозиториев...
Каталог сборки: /home/user/.cache/yay
==> Вы хотите удалить все пакеты AUR из кэша? [Д/н] y
.cache/yay » ls
completion.cache vcs.json yay-git
.cache/yay » LANG=en_US.UTF-8 yay -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/user/.cache/yay
==> Do you want to remove ALL AUR packages from cache? [Y/n] y
removing AUR packages from cache...
.cache/yay » ls
completion.cache vcs.json
.cache/yay » yay -V
yay v11.1.1 - libalpm v13.0.1
.cache/yay »
Reproduction Steps
- Download any PKGBUILD's to ~/.cache/yay/
- try clean cache with russian locale
LANG=ru_RU.UTF-8 yay -Scc