summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2007-04-06 12:14:19 +0000
committerCarsten Lohrke <carlo@gentoo.org>2007-04-06 12:14:19 +0000
commit4271f4ee13dd46e6273a929cc7c169cf841e2546 (patch)
tree317b0cd9118b9db657d0982752d715c70681c593 /eclass
parentstable x86 (diff)
downloadhistorical-4271f4ee13dd46e6273a929cc7c169cf841e2546.tar.gz
historical-4271f4ee13dd46e6273a929cc7c169cf841e2546.tar.bz2
historical-4271f4ee13dd46e6273a929cc7c169cf841e2546.zip
call validate_desktop_entries()
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde.eclass20
1 files changed, 6 insertions, 14 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index 7b63e7f4dc3e..2b4e281856b9 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.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/kde.eclass,v 1.193 2007/03/17 14:52:03 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.194 2007/04/06 12:14:19 carlo Exp $
#
# Author Dan Armak <danarmak@gentoo.org>
#
@@ -446,20 +446,12 @@ slot_rebuild() {
}
kde_pkg_preinst() {
- if [[ $(find "${D}/${PREFIX}/share/applnk" -name '*.desktop' \
+ validate_desktop_entries ${PREFIX}/share/appl{nk,ications}
+ if [[ $(find "${D}${PREFIX}/share/applnk" -name '*.desktop' \
-not -path '*.hidden*' 2>/dev/null | wc -l) != "0" ]]; then
- ewarn "KDE Team warning: this package (${PF}) is installing"
- ewarn " .desktop files in the obsolete applnk path:"
- ewarn " ${PREFIX}/share/applnk. It won't be shown on non-KDE"
- ewarn " menus and applications."
- fi
-
- if [[ $(egrep -q -r --include '*.desktop' --files-without-match \
- '^Categories' "${D}/${PREFIX}/share/applications" 2>/dev/null \
- | wc -l) != "0" ]] ; then
- ewarn "KDE Team warning: this package (${PF}) is installing"
- ewarn " .desktop files without the Categories attribute; it will"
- ewarn " be shown in the Lost & Found menu."
+ ewarn "This ebuild is installing .desktop files in the deprecated path"
+ ewarn "${PREFIX}/share/applnk/. They will only be visible within KDE."
+ echo ""
fi
}