|
|
24d05b |
diff -uNrp anaconda-21.48.22.121.orig/pyanaconda/packaging/yumpayload.py anaconda-21.48.22.121/pyanaconda/packaging/yumpayload.py
|
|
|
24d05b |
--- anaconda-21.48.22.121.orig/pyananconda/packaging/yumpayload.py 2017-08-31 16:28:06.672265889 +0000
|
|
|
24d05b |
+++ anaconda-21.48.22.121/pyanaconda/packaging/yumpayload.py 2017-08-31 16:28:38.812826778 +0000
|
|
|
24d05b |
@@ -42,6 +42,7 @@ import time
|
|
|
24d05b |
import hashlib
|
|
|
24d05b |
from pyanaconda.packaging import SSLOptions
|
|
|
24d05b |
from pyanaconda.iutil import execReadlines, ipmi_abort
|
|
|
24d05b |
+from pyanaconda.product import productName
|
|
|
24d05b |
from pyanaconda.simpleconfig import simple_replace
|
|
|
24d05b |
from functools import wraps
|
|
|
24d05b |
from urlgrabber.grabber import URLGrabber, URLGrabError
|
|
|
24d05b |
@@ -540,12 +541,16 @@ reposdir=%s
|
|
|
6c6fad |
@property
|
|
|
6c6fad |
def mirrorEnabled(self):
|
|
|
6c6fad |
with _yum_lock:
|
|
|
24d05b |
- # yum initializes with plugins disabled, and when plugins are disabled
|
|
|
24d05b |
- # _yum.plugins is a DummyYumPlugins object, which has no useful attributes.
|
|
|
24d05b |
- if hasattr(self._yum.plugins, "_plugins"):
|
|
|
24d05b |
- return "fastestmirror" in self._yum.plugins._plugins
|
|
|
24d05b |
+ # we just skip this on CentOS since we cant support it yet
|
|
|
6c6fad |
+ if productName.startswith("CentOS"):
|
|
|
24d05b |
+ return False
|
|
|
24d05b |
else:
|
|
|
24d05b |
- return False
|
|
|
24d05b |
+ # yum initializes with plugins disabled, and when plugins are disabled
|
|
|
24d05b |
+ # _yum.plugins is a DummyYumPlugins object, which has no useful attributes.
|
|
|
24d05b |
+ if hasattr(self._yum.plugins, "_plugins"):
|
|
|
24d05b |
+ return "fastestmirror" in self._yum.plugins._plugins
|
|
|
24d05b |
+ else:
|
|
|
24d05b |
+ return False
|
|
|
6c6fad |
|
|
|
6c6fad |
def getRepo(self, repo_id):
|
|
|
24d05b |
"""Return the yum repo object."""
|