paru
paru copied to clipboard
Clean flag issues twice deletes optional dependencies
Affected Version
paru v1.11.1 - libalpm v13.0.1
Description
According to the Paru man page, the only difference between Clean and Clean² is that make
and check
dependencies are removed:
-c, --clean
Remove unneeded dependencies.
Make and check dependencies are considered for foreign packages. Pass this twice to ignore these.
This is not the case, as Clean² would remove all optional dependencies and thus diverting from the description of this function in the man-page as well as Pacman's behavior:
$ sudo pacman -Qtdq
lib32-libgudev
lib32-libinstpatch
lib32-portaudio
According to the wiki. Paru seems to issue pacman -Qttdq
so one t more, which includes all optional dependencies.
Output
not relevant
It looks like the make/check deps and optional deps are both bound to passing clean twice. optdeps should probably be on -o or something.