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

Re: removing old conffiles on upgrade



On Tue, Jun 19, 2001 at 05:54:25PM +0100, Muhammad Hussain Yusuf wrote:
> Hi,
> I've just changed the directories of the conffile, binaries etc. to
> conform with Policy 3.5.5.0.
> 
> The old conffile dir was /etc/X11/filerunner and the new one is /etc/filerunner
> and the problem is that when installing new package, and an older version is
> installed, dpkg gives an error message, and the old conffile directory,
> not being empty, does not get removed.

You could you copy the old version to the new in the preinst and
remove the old version in the postinst.  Yes, dpkg will warn that the
old directory is not empty, but don't worry about it.  But be careful
to check the value of $1 and only to do them when the value is
sensible (eg not when it's abort-*).

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

         Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
       Debian GNU/Linux Developer,  see http://people.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/



Reply to: