commit: b0e71f5b8c5ca632fa44c4160fad2c69066d2c07
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 6 12:31:38 2016 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Apr 6 12:31:38 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=b0e71f5b
update-rsync-master: use repositories-configuration with egencache
--portdir is deprecated
scripts/rsync-generation/update-rsync-master.sh | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/scripts/rsync-generation/update-rsync-master.sh
b/scripts/rsync-generation/update-rsync-master.sh
index bfda169..753edb5 100755
--- a/scripts/rsync-generation/update-rsync-master.sh
+++ b/scripts/rsync-generation/update-rsync-master.sh
@@ -33,7 +33,7 @@ echo "(init) PATH=$PATH"
#### ---- egencache settings ---- ####
-EGENCACHE_OPTS="--jobs=2 --load-average=3 --tolerant --update-use-local-desc"
+EGENCACHE_OPTS="--jobs=4 --load-average=3 --tolerant --update-use-local-desc"
export PYTHONPATH PORTDIR PORTAGE_BASE_PATH PORTAGE_CONFIGROOT \
ROOT PORTAGE_TMPFS FEATURES HOME
@@ -215,11 +215,19 @@ dolog() {
dolog "${PORTAGE_BASE_PATH}/bin/egencache" --update --rsync \
--config-root="${PORTAGE_CONFIGROOT}" \
--cache-dir="${PORTAGE_DEPCACHEDIR}" \
- --portdir="${RSYNCDIR}" \
--repo=gentoo_prefix \
+ --repositories-configuration='
+[DEFAULT]
+main-repo = gentoo_prefix
+
+[gentoo_prefix]
+location = '"${RSYNCDIR}"'
+sync-type = rsync
+sync-uri = rsync://dont-sync
+auto-sync = no
+' \
${EGENCACHE_OPTS} \
|| exit 5
- #--repositories-configuration="/etc/repos.conf/gentoo_prefix.conf" \
STOP=$(date +%s)
TIME_EGENCACHE=$((STOP - START))