summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2012-06-22 19:18:24 +0000
committerIan Stakenvicius <axs@gentoo.org>2012-06-22 19:18:24 +0000
commit889c6a324f4cfa6e82031d7a61addd62b4f954bd (patch)
treeaf6259d696978c3d52b56069fc9b9a2f112afce1 /eclass/user.eclass
parentesethome: eerror and not die when home dir cannot be updated, due to for inst... (diff)
downloadhistorical-889c6a324f4cfa6e82031d7a61addd62b4f954bd.tar.gz
historical-889c6a324f4cfa6e82031d7a61addd62b4f954bd.tar.bz2
historical-889c6a324f4cfa6e82031d7a61addd62b4f954bd.zip
esethome: silently exit if home dir already up to date, improve messaging
Diffstat (limited to 'eclass/user.eclass')
-rw-r--r--eclass/user.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/user.eclass b/eclass/user.eclass
index 9f9f684d66b7..fa7e747d473e 100644
--- a/eclass/user.eclass
+++ b/eclass/user.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.21 2012/06/22 18:57:33 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.22 2012/06/22 19:18:24 axs Exp $
# @ECLASS: user.eclass
# @MAINTAINER:
@@ -422,6 +422,13 @@ esethome() {
if [[ ${ehome} == "-1" ]] ; then
ehome="/dev/null"
fi
+
+ # exit with no message if home dir is up to date
+ if [[ $(egethome "${euser}") == ${ehome} ]]; then
+ return 0
+ fi
+
+ einfo "Updating home for user '${euser}' ..."
einfo " - Home: ${ehome}"
# ensure home directory exists, otherwise update will fail