From: "Ian Stakenvicius (axs)" <axs@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog user.eclass
Date: Fri, 22 Jun 2012 19:18:24 +0000 (UTC) [thread overview]
Message-ID: <20120622191824.89CD12004B@flycatcher.gentoo.org> (raw)
axs 12/06/22 19:18:24
Modified: ChangeLog user.eclass
Log:
esethome: silently exit if home dir already up to date, improve messaging
Revision Changes Path
1.327 eclass/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.327&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.327&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.326&r2=1.327
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.326
retrieving revision 1.327
diff -u -r1.326 -r1.327
--- ChangeLog 22 Jun 2012 18:57:33 -0000 1.326
+++ ChangeLog 22 Jun 2012 19:18:24 -0000 1.327
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.326 2012/06/22 18:57:33 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.327 2012/06/22 19:18:24 axs Exp $
+
+ 22 Jun 2012; Ian Stakenvicius <axs@gentoo.org> user.eclass:
+ esethome: silently exit if home dir already up to date, improve messaging
22 Jun 2012; Ian Stakenvicius <axs@gentoo.org> user.eclass:
esethome: eerror and not die when home dir cannot be updated, due to for
1.22 eclass/user.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/user.eclass?rev=1.22&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/user.eclass?rev=1.22&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/user.eclass?r1=1.21&r2=1.22
Index: user.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/user.eclass,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- user.eclass 22 Jun 2012 18:57:33 -0000 1.21
+++ user.eclass 22 Jun 2012 19:18:24 -0000 1.22
@@ -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 @@
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
next reply other threads:[~2012-06-22 19:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-22 19:18 Ian Stakenvicius (axs) [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-22 18:57 [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog user.eclass Ian Stakenvicius (axs)
2012-06-22 15:14 Ian Stakenvicius (axs)
2012-06-18 16:51 Ian Stakenvicius (axs)
2011-11-04 13:08 Naohiro Aota (naota)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120622191824.89CD12004B@flycatcher.gentoo.org \
--to=axs@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox