FS#48818 - [paccache] false and misleading output if number of packages to keep is 0

Attached to Project: Pacman
Opened by Gordian Edenhofer (Edenhofer) - Tuesday, 05 April 2016, 13:11 GMT
Last edited by Allan McRae (Allan) - Tuesday, 11 October 2016, 10:30 GMT
Task Type Bug Report
Category Scripts & Tools
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 5.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

The script paccache produces false and misleading output if the number of packages to keep is set to 0.

To reproduce this bug simply run "paccache -rk0 -c <FOLDER WITH NO PACKAGES>" as test.
The output looks similiar to this:

stat: cannot stat '/srv/http/*.pkg.tar?(.+([^.]))': No such file or directory
rm: cannot remove '/srv/http/*.pkg.tar?(.+([^.]))': No such file or directory

==> finished: 1 packages removed (disk space saved: 0 B)
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 11 October 2016, 10:30 GMT
Reason for closing:  Won't fix
Additional comments about closing:  the contrib directory has been removed
Comment by Alessandro Caputo (Alexpin) - Monday, 06 March 2017, 06:39 GMT
Hello,
I just encountered this bug. I don't get what this has to do with the contrib directory.

I am using paccache (pacman) v5.0.1

Running `paccache -rk0` with an empty cache directory gives:

stat: cannot stat '/var/cache/pacman/pkg/*.pkg.tar?(.+([^.]))': No such file or directory
==> Privilege escalation required
rm: cannot remove '/var/cache/pacman/pkg/*.pkg.tar?(.+([^.]))': No such file or directory
==> finished: 1 packages removed (disk space saved: 0 B)
Comment by Gordian Edenhofer (Edenhofer) - Monday, 06 March 2017, 10:06 GMT
The according script was split out from the pacman source tree a while ago and has since been maintained in pacman-contrib. Your system does not reflect this change because there has not been a new release yet.

Loading...