summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2005-05-26 15:13:36 +0000
committerCarsten Lohrke <carlo@gentoo.org>2005-05-26 15:13:36 +0000
commit485f9cfd7ef87540bc1641aecdb5e24d406e3d1d (patch)
tree6280303d8dd4c2c1caf1ac378f305316ac31be39
parentAnother small multilib fix. (diff)
downloadgentoo-2-485f9cfd7ef87540bc1641aecdb5e24d406e3d1d.tar.gz
gentoo-2-485f9cfd7ef87540bc1641aecdb5e24d406e3d1d.tar.bz2
gentoo-2-485f9cfd7ef87540bc1641aecdb5e24d406e3d1d.zip
let's keep the desktop entry filename slot-wise constant, #94033
-rw-r--r--eclass/eutils.eclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 9b5168dee31c..1770531c42a4 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.176 2005/05/25 22:07:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.177 2005/05/26 15:13:36 carlo Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -860,8 +860,12 @@ make_desktop_entry() {
;;
esac
fi
-
- local desktop=${T}/${exec%% *}-${P}.desktop
+ if [ "${SLOT}" == "0" ] ; then
+ local desktop_name="${PN}"
+ else
+ local desktop_name="${PN}-${SLOT}"
+ fi
+ local desktop=${T}/${exec%% *}-${desktop_name}.desktop
echo "[Desktop Entry]
Encoding=UTF-8