summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorWulf Krueger <philantrop@gentoo.org>2007-05-28 00:45:33 +0000
committerWulf Krueger <philantrop@gentoo.org>2007-05-28 00:45:33 +0000
commit4bd6b52b08134f3eeaec39848620ef64a5e08cb5 (patch)
tree15ed7bcf874e7ffe040cf7e89bcfdcc323fb1f85 /eclass
parentAdd German translation, bug #175271 (diff)
downloadgentoo-2-4bd6b52b08134f3eeaec39848620ef64a5e08cb5.tar.gz
gentoo-2-4bd6b52b08134f3eeaec39848620ef64a5e08cb5.tar.bz2
gentoo-2-4bd6b52b08134f3eeaec39848620ef64a5e08cb5.zip
postprocess_desktop_entries: Added a check for an existing desktop file in the destination directory before moving a potentially broken one from its legacy location. Fixes bug 180057.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde-functions.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass
index 638017a9c36c..596a4a988a25 100644
--- a/eclass/kde-functions.eclass
+++ b/eclass/kde-functions.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-functions.eclass,v 1.152 2007/05/01 12:29:25 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.153 2007/05/28 00:45:33 philantrop Exp $
#
# Author Dan Armak <danarmak@gentoo.org>
#
@@ -918,8 +918,10 @@ postprocess_desktop_entries() {
if [[ -n ${desktop_entries} ]]; then
for entry in ${desktop_entries} ; do
- dodir ${PREFIX}/share/applications/kde
- mv ${entry} ${D}${PREFIX}/share/applications/kde
+ if [[ ! -f ${D}${PREFIX}/share/applications/kde/$(basename ${entry}) ]]; then
+ dodir ${PREFIX}/share/applications/kde
+ mv ${entry} ${D}${PREFIX}/share/applications/kde
+ fi
done
fi
fi