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