Control: tag -1 + confirmed On Sat, 06 Dec 2014 15:28:39 +0000, Dimitri John Ledkov wrote:
> The user's configuration in this case comes from debconf prompt and > that choice is preserved upon upgrades, without additional prompts and > is safe w.r.t. to dpkg prompts. Yes but it does it wrong. The .config should read existing values from the file and feed them into debconf. C.f. man 7 debconf-devel, section "Config file handling". > /etc/dpkg-cross/cross-compile.sample on the other-hand is a conffile > and direct modifications to that file will be preserved and used to > generate /etc/dpkg-cross/cross-compile file. > Thus you can edit the .sample file to add other things in that file > and they will be preserved across upgrades. This is non-intuitive (why would I edit .sample to change the other one?) and more importantly it doesn't work because the postinst just replaces "#*default_arch". Again, debconf-devel(7) has a nice template for the postinst action. Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Joel Harrison: Lonesome road blues
signature.asc
Description: Digital Signature