On Sat, 16 Jan 2010 22:27:04 +0000 Julien Cristau wrote: > On Fri, Jan 15, 2010 at 01:06:20 +0100, Francesco Poli wrote: [...] > > If anything goes wrong (e.g.: file /usr/sbin/apt-listbugs is moved or > > discarded or just loses execution permissions) and the Pre-Install hook > > begins to silently do nothing, the user might never notice that > > apt-listbugs is no longer actually executed, and just think that > > his/her upgrades or installations are safe! > > > If the apt-listbugs executable is not there, it means that apt-listbugs > is not installed.
It may also mean that the apt-listbugs executable has been manually messed up with. I still think that, in this case, /etc/apt/apt.conf.d/10apt-listbugs should *not* silently do nothing. > If apt-listbugs is not installed, it means the admin > uninstalled it. If this is actually the case, then /etc/apt/apt.conf.d/10apt-listbugs has been disabled by the postrm script, and package managers should ignore it. > If the admin decided to uninstall apt-listbugs, > apt-listbugs has no business breaking the package manager. Indeed, and apt-listbugs has so far tried to avoid breaking the package manager, by disabling its APT configuration fragment on removal (with the .disabled renaming). On the other hand, after a purge, no configuration file should be left around, obviously. If there's a better way to disable an APT configuration fragment (without nuking the configuration file itself), please suggest it. -- http://www.inventati.org/frx/progs/scripts/pdebuild-hooks.html Need some pdebuild hook scripts? ..................................................... Francesco Poli . GnuPG key fpr == C979 F34B 27CE 5CD8 DC12 31B5 78F4 279B DD6D FCF4
pgpuW6Bd2YwzM.pgp
Description: PGP signature