summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-20 11:59:11 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-20 11:59:11 +0000
commit71f3923d97d0e05e6d00b9de51e797d1af2fe7c5 (patch)
tree18058bb83147c52ded881609446db5679f8e5887
parentb75caba1e9e139c0a29839cb5c28d31bb5ed063f (diff)
downloadportage-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-xbin/emerge-webrsync8
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"