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

Re: dpkg-divert usage



Mark W. Eichin writes ("dpkg-divert usage"):
> In dpkg-1.1.0, diversions.text refers to dpkg-override, which doesn't
> exist. It appears to be dpkg-divert, which has a help file but no man
> page. (and nothing else in dpkg-1.1.0/doc/* mentions it.)
> 
> So, just to make sure, for the xterm-color package, which provides
> xterm overriding the one in xbase, I should use:
> debian.preinst:
> dpkg-divert --package xterm-color --divert xterm.mono --rename -add xterm
> debian.postrm:
> dpkg-divert --package xterm-color --divert xterm.mono --rename -remove xterm

No, you probably want
  dpkg-divert --package xterm-color --divert /usr/bin/X11/xterm.mono
              --rename --add /usr/bin/X11/xterm
(ie, using absolute paths).

The paths should be the ones that the package(s) you're diverting will
be installing (so perhaps they should be /usr/X11R6/bin) and must be
the same as the ones your package will be installing (so that changing
eg the /usr/bin/X11 link won't break things).

Ian.


Reply to: