summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2015-11-24 18:42:27 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2015-11-24 22:57:19 +0100
commitc0281b06f69edc9a8be219be3cf07fae96dc417e (patch)
tree1a91b08163fe600e6369b0a787d7221dd35e02c4 /eclass/xdg-utils.eclass
parentxdg-utils.eclass: use $HOME instead of $T (diff)
downloadgentoo-c0281b06f69edc9a8be219be3cf07fae96dc417e.tar.gz
gentoo-c0281b06f69edc9a8be219be3cf07fae96dc417e.tar.bz2
gentoo-c0281b06f69edc9a8be219be3cf07fae96dc417e.zip
xdg*.eclass: move phase related logic to xdg.eclass
Diffstat (limited to 'eclass/xdg-utils.eclass')
-rw-r--r--eclass/xdg-utils.eclass32
1 files changed, 0 insertions, 32 deletions
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index 112cce7795c7..5c765578f925 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -62,17 +62,6 @@ xdg_environment_reset() {
unset DBUS_SESSION_BUS_ADDRESS
}
-# @FUNCTION: xdg_desktopfiles_savelist
-# @DESCRIPTION:
-# Find the .desktop files about to be installed and save their location
-# in the XDG_ECLASS_DESKTOPFILES environment variable.
-# This function should be called from pkg_preinst.
-xdg_desktopfiles_savelist() {
- pushd "${D}" > /dev/null || die
- export XDG_ECLASS_DESKTOPFILES=$(find 'usr/share/applications' -type f 2> /dev/null)
- popd > /dev/null || die
-}
-
# @FUNCTION: fdo-xdg_desktop_database_update
# @DESCRIPTION:
# Updates the .desktop files database.
@@ -85,27 +74,11 @@ xdg_desktop_database_update() {
return
fi
- if [[ -z "${XDG_ECLASS_DESKTOPFILES}" ]]; then
- debug-print "No .desktop files to add to database"
- return
- fi
-
ebegin "Updating .desktop files database"
"${updater}" -q "${EROOT}${DESKTOP_DATABASE_DIR}"
eend $?
}
-# @FUNCTION: xdg_mimeinfo_savelist
-# @DESCRIPTION:
-# Find the mime information files about to be installed and save their location
-# in the XDG_ECLASS_MIMEINFOFILES environment variable.
-# This function should be called from pkg_preinst.
-xdg_mimeinfo_savelist() {
- pushd "${D}" > /dev/null || die
- export XDG_ECLASS_MIMEINFOFILES=$(find 'usr/share/mime' -type f 2> /dev/null)
- popd > /dev/null || die
-}
-
# @FUNCTION: xdg_mimeinfo_database_update
# @DESCRIPTION:
# Update the mime database.
@@ -118,11 +91,6 @@ xdg_mimeinfo_database_update() {
return
fi
- if [[ -z "${XDG_ECLASS_MIMEINFOFILES}" ]]; then
- debug-print "No mime info files to add to database"
- return
- fi
-
ebegin "Updating shared mime info database"
"${updater}" "${EROOT}${MIMEINFO_DATABASE_DIR}"
eend $?