[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#92594: configuration files should be moved to /etc



Hilmar Preusse <hille42@web.de> schrieb:

> On 16.08.04 Frank Küster (frank@kuesterei.ch) wrote:
>> Frank Küster <frank@debian.org> wrote:
>
> Hi,
>
>> > This is my new version of setup-conffiles; it's not yet tested
>> > (and I won't be able to do much testing before I leave for
>> > vacation). I will check it in as soon as the upload of tetex-base
>> > as it is now is done.
>> 
>> Below is the complete patch. I did a 
>> 
>> find -name "*cfg" -o "*cnf" -o "*.ini"
>> 
> So, why do you do the movement in {pre,post}{rm,in} instead of
> debian/rules?

The movement in debian/rules is also done, via setup-conffiles. But dpkg
will not change directories to symlinks (or vice versa):

Policy 6.5, No. 4:

,----
| A directory will never be replaced by a symbolic link to a directory
| or vice versa; instead, the existing state (symlink or not) will be
| left alone and dpkg will follow the symlink if there is one.
`----

Therefore one has to play tricks. Branden Robinson adviced me of twm's
way to do it, which is safe even if the installation fails in between
and is backed up.

Regards, Frank
-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie




Reply to: