diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2006-11-11 00:13:22 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2006-11-11 00:13:22 +0000 |
commit | f5c5487a60c658d8545292465332653b5ae8adee (patch) | |
tree | f328f7646fe360526e8206d0e5c44216ea8ee060 /eclass | |
parent | Stable on x86, bug #154365. (diff) | |
download | historical-f5c5487a60c658d8545292465332653b5ae8adee.tar.gz historical-f5c5487a60c658d8545292465332653b5ae8adee.tar.bz2 historical-f5c5487a60c658d8545292465332653b5ae8adee.zip |
Some of the jdks/jres install .desktop files so let's run update-desktop-database code in postinst and postrm.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java-vm-2.eclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/java-vm-2.eclass b/eclass/java-vm-2.eclass index 533758b6f17a..8da858417906 100644 --- a/eclass/java-vm-2.eclass +++ b/eclass/java-vm-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.15 2006/10/20 03:52:24 nichoj Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.16 2006/11/11 00:13:22 betelgeuse Exp $ # ----------------------------------------------------------------------------- # @eclass-begin @@ -12,7 +12,7 @@ # # ----------------------------------------------------------------------------- -inherit eutils +inherit eutils fdo-mime DEPEND=" =dev-java/java-config-2.0* @@ -32,7 +32,7 @@ fi JAVA_VM_CONFIG_DIR="/usr/share/java-config-2/vm" JAVA_VM_DIR="/usr/lib/jvm" -EXPORT_FUNCTIONS pkg_postinst pkg_prerm +EXPORT_FUNCTIONS pkg_postinst pkg_prerm pkg_postrm java-vm-2_pkg_postinst() { # Set the generation-2 system VM, if it isn't set @@ -80,6 +80,7 @@ java-vm-2_pkg_postinst() { java-vm_check-nsplugin java_mozilla_clean_ + fdo-mime_desktop_database_update } java-vm_check-nsplugin() { @@ -124,6 +125,10 @@ java-vm-2_pkg_prerm() { fi } +java-vm-2_pkg_postrm() { + fdo-mime_desktop_database_update +} + java_set_default_vm_() { java-config-2 --set-system-vm="${VMHANDLE}" |