Fix --sync maxretries calculation.
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Oct 2010 17:23:44 +0000 (10:23 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Oct 2010 17:24:55 +0000 (10:24 -0700)
pym/_emerge/actions.py

index 2f0c0756a90019c604ef261c75906879d829b4ff..67663e68672c9a17a965e2c9259c772c69844b28 100644 (file)
@@ -2119,7 +2119,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
 
                effective_maxretries = maxretries
                if effective_maxretries < 0:
-                       effective_maxretries = len(ips)
+                       effective_maxretries = len(ips) - 1
 
                SERVER_OUT_OF_DATE = -1
                EXCEEDED_MAX_RETRIES = -2