/[gentoo-x86]/eclass/user.eclass
Gentoo

Diff of /eclass/user.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.21 Revision 1.22
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.21 2012/06/22 18:57:33 axs Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.22 2012/06/22 19:18:24 axs Exp $
4 4
5# @ECLASS: user.eclass 5# @ECLASS: user.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org (Linux) 7# base-system@gentoo.org (Linux)
8# Joe Jezak <josejx@gmail.com> (OS X) 8# Joe Jezak <josejx@gmail.com> (OS X)
420 fi 420 fi
421 421
422 if [[ ${ehome} == "-1" ]] ; then 422 if [[ ${ehome} == "-1" ]] ; then
423 ehome="/dev/null" 423 ehome="/dev/null"
424 fi 424 fi
425
426 # exit with no message if home dir is up to date
427 if [[ $(egethome "${euser}") == ${ehome} ]]; then
428 return 0
429 fi
430
431 einfo "Updating home for user '${euser}' ..."
425 einfo " - Home: ${ehome}" 432 einfo " - Home: ${ehome}"
426 433
427 # ensure home directory exists, otherwise update will fail 434 # ensure home directory exists, otherwise update will fail
428 if [[ ! -e ${ROOT}/${ehome} ]] ; then 435 if [[ ! -e ${ROOT}/${ehome} ]] ; then
429 einfo " - Creating ${ehome} in ${ROOT}" 436 einfo " - Creating ${ehome} in ${ROOT}"

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20