On Mon, Sep 21, 2009 at 3:15 PM, Dan McGee <dan@archlinux.org> wrote:
Previously we only looked at the first cache directory returned by the library. This allows us to look at all cache directories for cleaning.
In addition, change the way we do a full (-Scc) cache cleaning operation. Instead of removing the parent directory, remove each package one-by-one as in the -Sc case. This would be ideal for someone mounting a cache directory over NFS, as it ensures we don't wipe out the mountpoint from underneath the directory.
Signed-off-by: Dan McGee <dan@archlinux.org> ---
Of the three patches, this is the least tested, aka I've never ran this on a machine of mine yet. Please let me know if you are daring enough and try either an -Sc or -Scc, and whether you had multiple cache directories configured. Thanks!
Well it looks fine. And I tested it on my box, with one and two cache directories, and a bunch of packages. -Sc and -Scc worked fine. So signoff :)