Re: changing location of conffiles
From: Joey Hess <joeyh@debian.org>
Subject: Re: changing location of conffiles
Date: Mon, 27 Nov 2000 20:11:01 -0800
> > But, at the stage of preinst (i.e. before expanding a package)
> > the new location /etc/foo does not exist yet ...???
>
> Well you'll have to make sure the directory exists. The good thing about
> this method is dpkg then treats it just as if the conffile in the new
> location has changed (if the user modified it), and can prompt the user
> about whether they want to replace it with the new one, etc.
Yes, I can understand your point.
From: Joey Hess <joeyh@debian.org>
Subject: Re: changing location of conffiles
Date: Mon, 27 Nov 2000 20:11:56 -0800
> There's nothing wrong with creating a directory in the preinst if the
> package also contains the directory.
Okay, I will follow your advices. Thanks for your kind help.
> > dpkg - warning: while removing foo, directory `/etc/foo' not
> > empty so not removed.
> > Purging configuration files for foo ...
> >
> > In a sence, this seems reasonable but we should remove /etc/foo.
> > Of course we can do it in a postrm but the above message will be
> > still displayed. Isn't this a problem?
>
> It's a dpkg bug, see the bug list.
Well, it seems #58878 and sorry to be so lazy.
Best Regards, 2000.11.28
--
Debian JP Developer - much more I18N of Debian
Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>
Department of Math., Tokushima Univ.
Reply to: