2014-04-17 14:19 GMT+02:00 Jonas Smedegaard <d...@jones.dk>: > Quoting Anders Jackson (2014-04-17 13:14:56) >> Den 17 apr 2014 11:25 skrev "Jonas Smedegaard" <[1]d...@jones.dk>: >> > Quoting Petter Reinholdtsen (2014-04-17 08:20:22) >>>> If that work, jwchat is broken, > [snip] >>> Ahh, now I realize what your point is: Declaring and applying must be >>> done together - so as to distinguish between stale answers (which >>> must not take precedence over package data) and current explicitly >>> seeded answers (which should take precedence). >> >> So if dpkg-reconfigure is trained to takes precedence as file >> contents, stdin and/or switches, it would be ok then? > > Nope. > > Imagine package foo-player with two debconf questions, gtk-theme and > audio-bus. > > 1) install foo-player, and select "green" and "JackD" > 2) edit /etc/foo-player.cfg to "theme = blue" > 3) preseed new value for audio-bus "Pulseaudio" > 4) run "dpkg-reconfigure --favor-answers-over-pkgstate" > > Result would be that *both* theme and bus would be changed.
I was thinking in the way of changing 3 and 4 into this instead. dpkg-reconfigure --preseed="foo-player audio-bus string pulseaudio" foo-player And if you edit the file without debconf, it will detect that and not touch it anyway, wouldn't it? > I have now raised the question at debian-devel@l.d.o - let's > discuss technical details there instead: > https://lists.debian.org/debian-devel/2014/04/msg00453.html OK > - Jonas _______________________________________________ Freedombox-discuss mailing list Freedombox-discuss@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss