On Thu, 14 Jan 2010 18:40:00 +0100 David Kalnischkies wrote: > Hi Jörgen Tegnér, Francesco Poli & Michael Prokop, > > First of all: Thanks for the reports!
You're welcome. [...] > To cut it short, i will sit down and rewrite it a bit so it has the > old behavior (expect that configfiles will be accepted also with .conf - > any suggestions for preferences ?) I don't know exactly what the old behavior was, since, ahem, I failed to find any documentation about it, as I said... Anyway, I think anything ending with .disabled , .dpkg-old , .dpkg-dist or .dpkg-new should be skipped. Restoring the old behavior is clearly the safest thing to do. > I guess, while on it i should write the filename conventions also > to the manpages for these various partfiles... Yes, that would be *really* appreciated! ;-) > > None the less, i would change apt-listbugs a bit: > > DPkg::Pre-Install-Pkgs {"if [ -x /usr/sbin/apt-listbugs ]; then > /usr/sbin/apt-listbugs apt || exit 10; else exit 0; fi";}; > > As far as i know all other packages do it that way I respectfully disagree that this should be done for apt-listbugs: the purpose of apt-listbugs is primarily to kick in when packages that are going to be upgraded/installed are RC-buggy and let the user stop the upgrade/installation, pin packages, and so forth. 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! The current situation is different: if the apt-listbugs package is installed, but something wrong prevents the execution of apt-listbugs, this issue is as noisy as possible. I think this is good! > and i also wonder > a bit if this .disabled thing is something dpkg likes... > (does it show old vs. new config file if the package was removed > and now reinstalled - but ships a new config now -- the old config was > edit by the user of course... ?) I don't know, yet (I am not the one who originally wrote the code that adds the .disabled extension to that conf file). I'll try and find the time to check: thanks for pointing this out. > It also support something i do personally: Configure it one time and > copy the same configuration to all computers/phones/whatever - > regardless if the application itself is installed or not - as the > configuration > will degenerate to a NOP if not... (init-scripts do the same btw.) I think I explained why apt-listbugs is different. Bye and thanks for your time. -- 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
pgp0HOfhc36yy.pgp
Description: PGP signature