summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2006-11-11 00:13:22 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2006-11-11 00:13:22 +0000
commitf9693487aece7018411e2e514c6420de1b1d1190 (patch)
treed231b912f3484d9a616c5ecc0690f79132be7806 /eclass
parentStable on x86, bug #154574. (diff)
downloadgentoo-2-f9693487aece7018411e2e514c6420de1b1d1190.tar.gz
gentoo-2-f9693487aece7018411e2e514c6420de1b1d1190.tar.bz2
gentoo-2-f9693487aece7018411e2e514c6420de1b1d1190.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.eclass11
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}"