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