Morganamilo / paru

Feature packed AUR helper
GNU General Public License v3.0
5.68k stars 221 forks source link

[BUG] Cleaning cache is not removing "pkg.tar.zst" on clone AUR #1056

Open ManuLinares opened 8 months ago

ManuLinares commented 8 months ago

Affected Version

paru v1.11.2 - libalpm v13.0.2

Description

A previous issue mentioned doing "paru -Scd" or "paru -Sccd", but this removes the whole package and rebuilding is slow. "paru -Sc" should remove pkg.tar.zst and tar.gz files in "clone" dir

Test

find ~/.cache/paru/clone/ -iname "*tar.zst" -or -iname "*.tar.gz" -exec du -ch {} +

Example

image

Additional

Also on testing I found this error, maybe it should be it's own Issue:

# paru -Sc

Packages to keep:
  All locally installed packages

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove all other packages from cache? [Y/n] n

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] n
removing unused sync repositories...

Clone Directory: /home/mb/.cache/paru/clone
:: Do you want to clean all other AUR packages from cache? [Y/n]: y
error: key 'sha256sums' requires a value: Line 15: sha256sums =

Diff Directory: /home/mb/.cache/paru/diff...
Tblue commented 6 months ago

Still an issue with paru v2.0.1.