|
Karanbir Singh |
b30266 |
diff -uNr anaconda-21.48.22.56__orig/pyanaconda/packaging/yumpayload.py anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py
|
|
Karanbir Singh |
b30266 |
--- anaconda-21.48.22.56__orig/pyanaconda/packaging/yumpayload.py 2015-10-29 14:23:19.000000000 +0000
|
|
Karanbir Singh |
b30266 |
+++ anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py 2015-12-07 17:36:49.070000000 +0000
|
|
Karanbir Singh |
b30266 |
@@ -481,12 +481,16 @@
|
|
|
9d7c21 |
@property
|
|
|
9d7c21 |
def mirrorEnabled(self):
|
|
|
9d7c21 |
with _yum_lock:
|
|
Karanbir Singh |
b30266 |
- # yum initializes with plugins disabled, and when plugins are disabled
|
|
Karanbir Singh |
b30266 |
- # _yum.plugins is a DummyYumPlugins object, which has no useful attributes.
|
|
Karanbir Singh |
b30266 |
- if hasattr(self._yum.plugins, "_plugins"):
|
|
Karanbir Singh |
b30266 |
- return "fastestmirror" in self._yum.plugins._plugins
|
|
Karanbir Singh |
b30266 |
+ # we just skip this on CentOS since we cant support it yet
|
|
|
9d7c21 |
+ if productName.startswith("CentOS"):
|
|
Karanbir Singh |
b30266 |
+ return False
|
|
Karanbir Singh |
b30266 |
else:
|
|
Karanbir Singh |
b30266 |
- return False
|
|
Karanbir Singh |
b30266 |
+ # yum initializes with plugins disabled, and when plugins are disabled
|
|
Karanbir Singh |
b30266 |
+ # _yum.plugins is a DummyYumPlugins object, which has no useful attributes.
|
|
Karanbir Singh |
b30266 |
+ if hasattr(self._yum.plugins, "_plugins"):
|
|
Karanbir Singh |
b30266 |
+ return "fastestmirror" in self._yum.plugins._plugins
|
|
Karanbir Singh |
b30266 |
+ else:
|
|
Karanbir Singh |
b30266 |
+ return False
|
|
|
9d7c21 |
|
|
|
9d7c21 |
def getRepo(self, repo_id):
|
|
|
9d7c21 |
""" Return the yum repo object. """
|
|
Karanbir Singh |
007491 |
diff -uNr anaconda-21.48.22.56__orig/pyanaconda/packaging/yumpayload.py anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py
|
|
Karanbir Singh |
007491 |
--- anaconda-21.48.22.56__orig/pyanaconda/packaging/yumpayload.py 2015-12-07 21:29:36.058347960 +0000
|
|
Karanbir Singh |
007491 |
+++ anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py 2015-12-07 21:32:50.255770594 +0000
|
|
Karanbir Singh |
007491 |
@@ -43,6 +43,7 @@
|
|
Karanbir Singh |
007491 |
from pyanaconda.iutil import execReadlines
|
|
Karanbir Singh |
007491 |
from pyanaconda.simpleconfig import simple_replace
|
|
Karanbir Singh |
007491 |
from functools import wraps
|
|
Karanbir Singh |
007491 |
+from pyanaconda.product import productName
|
|
Karanbir Singh |
007491 |
|
|
Karanbir Singh |
007491 |
import logging
|
|
Karanbir Singh |
007491 |
log = logging.getLogger("packaging")
|