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