neil / rpms / anaconda

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