neil / rpms / anaconda

Forked from rpms/anaconda a year ago
Clone
f4150a
diff -uNr anaconda-19.31.79__orig/pyanaconda/packaging/yumpayload.py anaconda-19.31.79/pyanaconda/packaging/yumpayload.py
f4150a
--- anaconda-19.31.79__orig/pyanaconda/packaging/yumpayload.py	2014-04-29 01:45:59.000000000 +0100
f4150a
+++ anaconda-19.31.79/pyanaconda/packaging/yumpayload.py	2014-07-02 14:36:15.360488588 +0100
f4150a
@@ -428,7 +428,10 @@
f4150a
     @property
f4150a
     def mirrorEnabled(self):
f4150a
         with _yum_lock:
f4150a
-            return "fastestmirror" in self._yum.plugins._plugins
f4150a
+            if productName.startswith("CentOS"):
f4150a
+                return 0
f4150a
+            else:
f4150a
+                return "fastestmirror" in self._yum.plugins._plugins
f4150a
 
f4150a
     def getRepo(self, repo_id):
f4150a
         """ Return the yum repo object. """
Karanbir Singh 36d77b
diff -uNr anaconda-21.48.22.56__orig/pyanaconda/packaging/yumpayload.py anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py
Karanbir Singh 36d77b
--- anaconda-21.48.22.56__orig/pyanaconda/packaging/yumpayload.py	2015-12-07 21:29:36.058347960 +0000
Karanbir Singh 36d77b
+++ anaconda-21.48.22.56/pyanaconda/packaging/yumpayload.py	2015-12-07 21:32:50.255770594 +0000
Karanbir Singh 36d77b
@@ -43,6 +43,7 @@
Karanbir Singh 36d77b
 from pyanaconda.iutil import execReadlines
Karanbir Singh 36d77b
 from pyanaconda.simpleconfig import simple_replace
Karanbir Singh 36d77b
 from functools import wraps
Karanbir Singh 36d77b
+from pyanaconda.product import productName 
Karanbir Singh 36d77b
 
Karanbir Singh 36d77b
 import logging
Karanbir Singh 36d77b
 log = logging.getLogger("packaging")