~ubuntu-java/uj/openjdk6

« back to all changes in this revision

Viewing changes to JB-jre-headless.postinst.in

  • Committer: Matthias Klose
  • Date: 2008-04-08 13:41:28 UTC
  • Revision ID: doko@ubuntu.com-20080408134128-b8ri2979izf8i6kw
  * binfmt-support: Handle /usr/share/binfmts/jar as a slave symlink of
    the jexec alternative, install the binfmt file in the jre libdir.
    Use the jexec alternative in the binfmt file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        /usr/bin/jexec \
53
53
        jexec \
54
54
        $basediralias/jre/lib/jexec \
55
 
        $priority
 
55
        $priority \
 
56
        --slave \
 
57
            /usr/share/binfmts/jar \
 
58
            jexec-binfmt \
 
59
            $basediralias/jre/lib/jar.binfmt
56
60
 
57
61
    # register binfmt
58
 
    if [ -x /usr/sbin/update-binfmts -a -e /usr/share/binfmts/java-common ]; then
59
 
        /usr/sbin/update-binfmts --package java-common --import java-common
 
62
    if [ -x /usr/sbin/update-binfmts ] && [ -r /usr/share/binfmts/jar ]; then
 
63
        /usr/sbin/update-binfmts --package --import @basename@
60
64
    fi
61
65
    # fix slave links for man page alternatives
62
66
    if [ -n "$2" ] && dpkg --compare-versions "$2" lt 6-00-2ubuntu2; then