isolated-functions.sh when necessary.
svn path=/main/trunk/; revision=9107
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
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}"