FS#44850 - [paccache] prints success message even if no packages were removed due to an error.

Attached to Project: Pacman
Opened by Karol Błażewicz (karol) - Monday, 04 May 2015, 19:22 GMT
Last edited by Allan McRae (Allan) - Tuesday, 11 October 2016, 10:30 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 4.2.1
Due in Version 5.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I ran paccache w/o sudo and used ^C to quit when asked for password. I got an error ... and a success message:

$ paccache -r
==> Privilege escalation required
[sudo] password for karol:
==> ERROR: Unable to escalate privileges using sudo

==> finished: 23 packages removed (disk space saved: 154.37 MiB)
$ paccache -d

==> finished dry run: 23 candidates (disk space saved: 154.37 MiB)
$ sudo paccache -r

==> finished: 23 packages removed (disk space saved: 154.37 MiB)
$ sudo paccache -r
==> no candidate packages found for pruning

$ paccache --version
paccache 4.2.1
Copyright (C) 2011 Dave Reisner <dreisner@archlinux.org>
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

Loading...