neil / rpms / anaconda

Forked from rpms/anaconda a year ago
Clone
24d05b
diff -uNr anaconda-21.48.22.56__orig/pyanaconda/packaging/yumpayload.py anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py
24d05b
--- anaconda-21.48.22.56__orig/pyanaconda/packaging/yumpayload.py       2015-12-08 14:36:52.533000000 +0000
24d05b
+++ anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py     2015-12-08 14:38:51.464000000 +0000
24d05b
@@ -648,6 +648,10 @@
24d05b
                     # so that unattended installations on unreliable networks have
24d05b
                     # a higher chance of finishing successfully
24d05b
                     xdelay = xprogressive_delay()
24d05b
+                    if not nm_is_connected():
24d05b
+                      MAX_METADATA_DOWNLOAD_RETRIES = 1
24d05b
+                    else:
24d05b
+                      MAX_METADATA_DOWNLOAD_RETRIES = 10
24d05b
                     for retry_count in xrange(0, MAX_METADATA_DOWNLOAD_RETRIES + 1):
24d05b
                         if retry_count > 0:
24d05b
                             # introduce a retry delay