diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-03-20 11:59:11 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-03-20 11:59:11 +0000 |
commit | 71f3923d97d0e05e6d00b9de51e797d1af2fe7c5 (patch) | |
tree | 18058bb83147c52ded881609446db5679f8e5887 | |
parent | b75caba1e9e139c0a29839cb5c28d31bb5ed063f (diff) | |
download | portage-71f3923d97d0e05e6d00b9de51e797d1af2fe7c5.tar.gz portage-71f3923d97d0e05e6d00b9de51e797d1af2fe7c5.tar.bz2 portage-71f3923d97d0e05e6d00b9de51e797d1af2fe7c5.zip |
Make emerge-webrsync only do metadata-transfer when necessary. Thanks to Patrick Lauer for reporting.
svn path=/main/trunk/; revision=2965
-rwxr-xr-x | bin/emerge-webrsync | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index bd39275c3..636b036e8 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -12,6 +12,8 @@ if [ -n "${PORTAGE_NICENESS}" ]; then renice $PORTAGE_NICENESS $$ > /dev/null fi +source /usr/lib/portage/bin/isolated-functions.sh || exit 1 +FEATURES="$(/usr/lib/portage/bin/portageq envvar FEATURES)" GENTOO_MIRRORS="${GENTOO_MIRRORS} $(/usr/lib/portage/bin/portageq gentoo_mirrors)" PORTDIR="$(/usr/lib/portage/bin/portageq portdir)" FETCHCOMMAND="$(/usr/lib/portage/bin/portageq envvar FETCHCOMMAND)" @@ -73,8 +75,10 @@ sync_local() { echo "cleaning up" rm -rf portage fi - echo "transferring metadata/cache" - emerge --metadata + if hasq metadata-transfer ${FEATURES} ; then + echo "transferring metadata/cache" + emerge --metadata + fi } echo "Fetching most recent snapshot" |