~ubuntu-java/uj/openjdk6

« back to all changes in this revision

Viewing changes to JB-jre-headless.prerm.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:
12
12
update-alternatives --remove jexec $basediralias/jre/lib/jexec
13
13
 
14
14
if [ -x /usr/sbin/update-binfmts ]; then
15
 
    # Ubuntu has used update-binfmts directly but it is better done in
16
 
    # java-common. That is why we are removing any former registration.
 
15
    # try to remove and ignore the error
17
16
    if [ -e /var/lib/binfmts/@basename@ ]; then
18
17
        /usr/sbin/update-binfmts --package @basename@ \
19
 
            --remove @basename@ $basedir/jre/lib/jexec
20
 
    fi
21
 
    # Remove binfmt if no other jdk package has registered
22
 
    # /usr/bin/jexec.
23
 
    if [ -e /var/lib/binfmts/java-common -a ! -x /usr/bin/jexec ]; then
24
 
        /usr/sbin/update-binfmts --package java-common \
25
 
            --remove java-common /usr/bin/jexec
 
18
            --remove @basename@ $basedir/jre/lib/jexec || true
26
19
    fi
27
20
fi
28
21