diff options
author | Akinori Hattori <hattya@gentoo.org> | 2004-06-13 13:19:52 +0000 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2004-06-13 13:19:52 +0000 |
commit | 56fe02695ed463631c6e44e372b5bda0a665ef30 (patch) | |
tree | 7fced570475455806f87737898cf3fe97752e597 /eclass | |
parent | update comment (diff) | |
download | gentoo-2-56fe02695ed463631c6e44e372b5bda0a665ef30.tar.gz gentoo-2-56fe02695ed463631c6e44e372b5bda0a665ef30.tar.bz2 gentoo-2-56fe02695ed463631c6e44e372b5bda0a665ef30.zip |
update
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/subversion.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index 28237cdce564..47f3df4e9410 100644 --- a/eclass/subversion.eclass +++ b/eclass/subversion.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.12 2004/06/13 12:58:03 hattya Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.13 2004/06/13 13:19:52 hattya Exp $ ## --------------------------------------------------------------------------- # # Author: Akinori Hattori <hattya@gentoo.org> @@ -163,7 +163,7 @@ subversion_svn_fetch() { cd "${ESVN_CO_DIR}" local NOW=$(date +%s) UPDATE=$(date -r .svn/entries +%s) INTERVAL=3600 - if expr ${NOW} - ${UPDATE} \> ${INTERVAL} >/dev/null; then + if (( ${NOW} - ${UPDATE} > ${INTERVAL} )); then ${ESVN_UPDATE_CMD} || die "${ESVN}: can't update from ${ESVN_REPO_URI}." else |