Fix reference to possibly undefined ips variable.
authorZac Medico <zmedico@gentoo.org>
Wed, 13 Oct 2010 09:22:33 +0000 (02:22 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 13 Oct 2010 09:22:33 +0000 (02:22 -0700)
pym/_emerge/actions.py

index 1338741186a5294efb8f3acd525ab8a871df4a84..d395864b9643e0b9b61c8780ec1cdbd1554ec2b8 100644 (file)
@@ -2138,7 +2138,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
 
                effective_maxretries = maxretries
                if effective_maxretries < 0:
-                       effective_maxretries = len(ips) - 1
+                       effective_maxretries = len(uris) - 1
 
                SERVER_OUT_OF_DATE = -1
                EXCEEDED_MAX_RETRIES = -2