summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2011-08-09 18:50:43 +0000
committerJeremy Olexa <darkside@gentoo.org>2011-08-09 18:50:43 +0000
commitd3c0c0f6b3160dfc149979870e47ddccb70d8646 (patch)
tree27b92f4d2a0fda123ed7efb216bde7aaacb8ba40 /eclass/fdo-mime.eclass
parentVersion bump. Clean up ebuild. Add more library dependencies. Remove obsolete... (diff)
downloadhistorical-d3c0c0f6b3160dfc149979870e47ddccb70d8646.tar.gz
historical-d3c0c0f6b3160dfc149979870e47ddccb70d8646.tar.bz2
historical-d3c0c0f6b3160dfc149979870e47ddccb70d8646.zip
also protect EROOT that I overlooked in previous commit
Diffstat (limited to 'eclass/fdo-mime.eclass')
-rw-r--r--eclass/fdo-mime.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/fdo-mime.eclass b/eclass/fdo-mime.eclass
index eae5c1f5b89a..000aa51d3e89 100644
--- a/eclass/fdo-mime.eclass
+++ b/eclass/fdo-mime.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/fdo-mime.eclass,v 1.11 2011/08/09 18:43:05 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/fdo-mime.eclass,v 1.12 2011/08/09 18:50:43 darkside Exp $
# @ECLASS: fdo-mime.eclass
# @MAINTAINER: freedesktop-bugs@gentoo.org
@@ -16,6 +16,7 @@
# Generates a list of mimetypes linked to applications that can handle them
fdo-mime_desktop_database_update() {
has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}"
if [ -x "${EPREFIX}/usr/bin/update-desktop-database" ]
then
einfo "Updating desktop mime database ..."
@@ -29,6 +30,7 @@ fdo-mime_desktop_database_update() {
# Creates a general list of mime types from several sources
fdo-mime_mime_database_update() {
has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}"
if [ -x "${EPREFIX}/usr/bin/update-mime-database" ]
then
einfo "Updating shared mime info database ..."