On Tue, Jun 19, 2001 at 07:28:27PM +0100, Julian Gilbey wrote: > 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-*).
What if you MOVED the file, rather than copying it: would dpkg still complain? -S -- by Rocket to the Moon, by Airplane to the Rocket, by Taxi to the Airport, by Frontdoor to the Taxi, by throwing back the blanket and laying down the legs ... - They Might Be Giants