[EMAIL PROTECTED] (Colin Watson) wrote: >Henrique de Moraes Holschuh <[EMAIL PROTECTED]> wrote: >>On Tue, 19 Jun 2001, Steve M. Robbins wrote: >>> What if you MOVED the file, rather than copying it: would dpkg still >>> complain? >> >>Do it in preinst (and don't forget to add the proper error recovery to move >>it back should the install fail), and dpkg will not complain. > >Except, well, it does. At least if you've also changed the conffile in >the package (perhaps in a later upload than the one where you moved the >conffile, if people didn't upgrade to the version in the middle). The >same (mis)behaviour happens if you make a non-conffile a conffile and >then change it in the package; I can produce a trivial test case if you >like.
Such a test case is at http://people.debian.org/~cjwatson/conffile-problems.tar.gz. Please try it out and see if you can figure out a way to make direct upgrades from foo_0.1 to foo_0.3 work. (I realize I'm not doing the proper error recovery and so on here, but that shouldn't matter in this case.) -- Colin Watson [EMAIL PROTECTED]