On 2008-10-19 04:28 +0200, Todd A. Jacobs wrote:

> I have a custom VNC jar file in /usr/share/java/vncviewer-4.1-local.jar,
> and I want it to be used instead of the jar file installed by vnc-java
> in /usr/share/java/vncviewer-3.3.3r2.jar, but I can't seem to get the
> syntax right:
>
>     $ sudo dpkg-divert --add --rename --divert \
>       /usr/share/java/vncviewer-4.1-local.jar \
>       /usr/share/java/vncviewer-3.3.3r2.jar
>
>     pkg-divert: rename involves overwriting
>     `/usr/share/java/vncviewer-4.1-local.jar' with
>       different file `/usr/share/java/vncviewer-3.3.3r2.jar', not
>       allowed
>
> How is this *supposed* to be done? The man pages aren't really very
> clear to me.

You have to supply a _new_ file name as the first argument, since this
is what the diverted file will be renamed to, e.g.

$ sudo dpkg-divert --add --rename --divert --local \
       /usr/share/java/vncviewer-3.3.2.jar.distrib \
       /usr/share/java/vncviewer-3.3.3r2.jar

Then you can copy/symlink/rename your
/usr/share/java/vncviewer-4.1-local.jar to vncviewer-3.3.3r2.jar.

Sven


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to