summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-29 13:50:58 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-29 13:50:58 +0000
commit601745da7cacdecea779cc4b4b3b52987d1c5888 (patch)
tree9a4a5811820515bda5c36bd25003b78f53fd3e74
parenta59b130ead2b3a2f37a8f719bc77b29d1a46db7f (diff)
downloadportage-601745da7cacdecea779cc4b4b3b52987d1c5888.tar.gz
portage-601745da7cacdecea779cc4b4b3b52987d1c5888.tar.bz2
portage-601745da7cacdecea779cc4b4b3b52987d1c5888.zip
Rely on USERLAND since it's automatically generated by
isolated-functions.sh when necessary. svn path=/main/trunk/; revision=9107
-rwxr-xr-xbin/emerge-webrsync6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync
index a3c7e9130..8ee18f2a4 100755
--- a/bin/emerge-webrsync
+++ b/bin/emerge-webrsync
@@ -30,10 +30,6 @@ fi
source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1
-# ${USERLAND} is unreliable since the portage tree might be empty, so test
-# success of the -r option to distinguish between gnu and bsd date.
-date -r 0 >&/dev/null && DATE_ARGS="BSD" || DATE_ARGS="GNU"
-
do_verbose=0
if hasq webrsync-gpg ${FEATURES} ; then
@@ -54,7 +50,7 @@ get_date_part() {
local utc_time_in_secs="$1"
local part="$2"
- if [ "${DATE_ARGS}" = "BSD" ]; then
+ if [ "${USERLAND}" = "BSD" ]; then
date -r ${utc_time_in_secs} -u +"${part}"
else
date -d @${utc_time_in_secs} -u +"${part}"