summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-07 04:15:20 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-07 04:15:20 +0000
commit2625d8d9f4316ef376d4e27fbe36a1e5d35db9d3 (patch)
treea2ebede29ab7ebbd93c7b9d61bb3581cd8786ac5 /eclass
parentrequire newer version of boost #108294 by Martin Akselsen (diff)
downloadhistorical-2625d8d9f4316ef376d4e27fbe36a1e5d35db9d3.tar.gz
historical-2625d8d9f4316ef376d4e27fbe36a1e5d35db9d3.tar.bz2
historical-2625d8d9f4316ef376d4e27fbe36a1e5d35db9d3.zip
make sure make_desktop_entry returns proper error code from doins #108309 by Petteri Räty
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass18
1 files changed, 10 insertions, 8 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index d9b8f93454a1..85e28ecde2e5 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.203 2005/09/27 12:38:56 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.204 2005/10/07 04:15:20 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -495,11 +495,11 @@ enewuser() {
die "${eshell} does not exist"
fi
else
- for shell in /sbin/nologin /usr/sbin/nologin /bin/false /usr/bin/false /dev/null; do
- [[ -x ${ROOT}${shell} ]] && break;
+ for shell in /sbin/nologin /usr/sbin/nologin /bin/false /usr/bin/false /dev/null ; do
+ [[ -x ${ROOT}${shell} ]] && break
done
- if [[ ${shell} == "/dev/null" ]]; then
+ if [[ ${shell} == "/dev/null" ]] ; then
eerror "Unable to identify the shell to use"
die "Unable to identify the shell to use"
fi
@@ -858,10 +858,12 @@ Path=${path}
Icon=${icon}
Categories=Application;${type};" > "${desktop}"
- insinto /usr/share/applications
- doins "${desktop}"
-
- return 0
+ (
+ # wrap the env here so that the 'insinto' call
+ # doesn't corrupt the env of the caller
+ insinto /usr/share/applications
+ doins "${desktop}"
+ )
}
# Make a GDM/KDM Session file