> > > libpisock9 0.12.2-7 has a "Conflicts: pilot-link (<< 0.12.2-7)"
> > > to avoid this problem.
> > >
> > /usr/udev/rules.d/60-libpisock.rules is a conffile, so a Conflicts
> > isn't enough.  Conflicts only ensures that pilot-link is removed,
> > not purged.
>
> What is the correct way to move a conffile from one package
> (pilot-link) to another (libpisock9)?
>
> Thanks

As the bug title specifies, the way to move any file from one to
another (after the actual move) is with Replace: in debian/control.

The package now containing the file contains a Replace: line, specifying
the package FROM which the file has been removed.

In the section of debian/control for Package:libpisock9 :
Replaces: pilot-link

I usually put Replaces: lines after Depends: but YMMV.

Any file in libpisock9 is then able to replace any file that was
previously installed by pilot-link, preventing the "trying to overwrite
foo" errors.

I've just moved a symlink in /usr/lib from a -dbg to a -dev package
with this method, it doesn't actually matter what kind of file is
involved - as long as any side-effects are handled elsewhere (i.e.
that the package(s) work after the move).

--


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpYXpxkqEVva.pgp
Description: PGP signature

Reply via email to