FS#15142 - offer to clean up non-package files in cache directory
Attached to Project:
Pacman
Opened by Allan McRae (Allan) - Wednesday, 17 June 2009, 07:54 GMT
Last edited by Dan McGee (toofishes) - Thursday, 16 July 2009, 11:18 GMT
Opened by Allan McRae (Allan) - Wednesday, 17 June 2009, 07:54 GMT
Last edited by Dan McGee (toofishes) - Thursday, 16 July 2009, 11:18 GMT
|
Details
Summary and Info:
Pacman recognises that a file in the cache directory is not an archive so should offer to clean it up. > pacman -Sc Cache directory: /var/cache/pacman/pkg/ Do you want to remove outdated packages from cache? [Y/n] removing old packages from cache... error: error while reading package /var/cache/pacman/pkg/gnome-do-plugins-0.8.1.3-1.pkg.tar.gz.part: Unrecognized archive format done. |
This task depends upon
Closed by Dan McGee (toofishes)
Thursday, 16 July 2009, 11:18 GMT
Reason for closing: Fixed
Additional comments about closing: Commit 8ebc07744ac58ed1e42af3a52d9985
Thursday, 16 July 2009, 11:18 GMT
Reason for closing: Fixed
Additional comments about closing: Commit 8ebc07744ac58ed1e42af3a52d9985
myhost% sudo src/pacman/pacman -Sc
Cache directory: /var/cache/pacman/pkg/
Do you want to remove uninstalled packages from cache? [Y/n]
removing old packages from cache...
error: missing package metadata in /var/cache/pacman/pkg/aaaaaaa
File /var/cache/pacman/pkg/aaaaaaa does not seem to be a valid package, remove it? [Y/n]
Database directory: /var/lib/pacman/
Do you want to remove unused repositories? [Y/n]
Database directory cleaned up
if(!noyes(_("Do you want to remove ALL packages from cache?"))) {
printf(_("removing all packages from cache...\n"));
I will change that and put on my working branch.