Re: packages with hook interfaces and no documented hook policy
On Tue, Jan 18, 2011 at 01:08:36AM -0400, Joey Hess wrote:
> Michael Biebl wrote:
> > Also; You said, the hook breaks suspend/hibernate. I don't agree this is the
> > case. If there is no upgrade running, the hook will exit immediately.
> > If there is an upgrade running, the hook simply blocks until the upgrade has
> > finished. Suspend/Hibernate is still not 100% reliable, so this is probably a
> > safe choice.
> ... unless the system is being suspended because it is critically low on
> battery, and is going to crash and lose the user's work and need a fsck
Indeed, if there is a way for the hook know if that is the case I'm
happy to add code for this situation to exit immediately.
> Suspend may not be 100% reliable on all hardware or in all
> circumstances, but that is not a good excuse to make it significantly
> less reliable, really.
Its not doing anything on suspend, just hibernate.