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

Re: Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled.



On May 12, Nicolás Lichtmaier wrote
> 
> 1) There's no easy/fast way for a script to check the status of its
> package (grep through the whole status file?).
> 
> 2) It would be needed to have this fixed in *lots* of packages, and many
> newly created packages may have this problem, or handle this in a buggy
> way. If it gets fixed in dpkg somehow.. well... no more trouble.

What's wrong with inserting a 

test -x /usr/path/to/file/in/package/that/installs/cron/entry || exit 0

at the top of the cron file? Just like we do with init.d files... Unless
I'm really missing something, this would fix all the problems. No need to
get dpkg involved. IMHO, this should be mandated by the policy manual, if
it isn't already...

  Christian

Attachment: pgphL_HiA2jqZ.pgp
Description: PGP signature


Reply to: