[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: purging files that may be important



Gus <gusl@cse.unsw.edu.au> writes:

> after a "remove", i no longer run the checker, so no new messages will 
> be quarantined - should i also stop running the cron script or is it
> a good idea to continue removing old messages?

Probably you should check if the pkg is in remove state and exit early
from the cron script if so.  Actually, it could go either way, because
I could see why you would want to continue to reap old quarantined
message even if the pkg is removed....

> on a "purge", should i remove this directory (and any quarantined
> messages), or should i leave them and rely on the admin noticing the
> "not empty so not removing directory" message from dpkg?
> 
> (i was going to have the postrm ask, but i'd rather avoid requiring
> interaction)
> 
> i'm thinking the best solution is to not remove the files, and echo a
> message saying that i'm not  (principle of least surprise)

Yes, sounds right.  Removing them seems like possible data loss for
the user.  YOu might even prompt for whether the quarantined msgs
ought to be removed?

--
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>


Reply to: