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