summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-07 08:22:47 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-07 08:22:47 -0700
commit177e75d9ff83e17cd0b01e971330d25e26ed6377 (patch)
tree33208604305c5a40ed2a3af19beab2a2a2d5fe0f
parent59a8986cd9393d44fe53ac66bf6e0d3e763b6f37 (diff)
downloadportage-177e75d9ff83e17cd0b01e971330d25e26ed6377.tar.gz
portage-177e75d9ff83e17cd0b01e971330d25e26ed6377.tar.bz2
portage-177e75d9ff83e17cd0b01e971330d25e26ed6377.zip
Report len(ips) as max retry count for --sync.
-rw-r--r--pym/_emerge/actions.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 49623aa0c..f49f455b8 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2151,10 +2151,15 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
if "--quiet" not in myopts:
print(">>> Starting rsync with "+dosyncuri+"...")
else:
+ effective_maxretries = maxretries
+ if effective_maxretries < 0:
+ effective_maxretries = len(ips)
emergelog(xterm_titles,
">>> Starting retry %d of %d with %s" % \
- (retries,maxretries,dosyncuri))
- print("\n\n>>> Starting retry %d of %d with %s" % (retries,maxretries,dosyncuri))
+ (retries, effective_maxretries, dosyncuri))
+ writemsg_stdout(
+ "\n\n>>> Starting retry %d of %d with %s\n" % \
+ (retries, effective_maxretries, dosyncuri), noiselevel=-1)
if mytimestamp != 0 and "--quiet" not in myopts:
print(">>> Checking server timestamp ...")