netgod / rpms / anaconda

Forked from rpms/anaconda 2 years ago
Clone
Karanbir Singh e8bece
diff -uNr anaconda-19.31.79__orig/pyanaconda/packaging/yumpayload.py anaconda-19.31.79/pyanaconda/packaging/yumpayload.py
Karanbir Singh e8bece
--- anaconda-19.31.79__orig/pyanaconda/packaging/yumpayload.py	2014-04-29 01:45:59.000000000 +0100
Karanbir Singh e8bece
+++ anaconda-19.31.79/pyanaconda/packaging/yumpayload.py	2014-07-02 14:36:15.360488588 +0100
Karanbir Singh e8bece
@@ -428,7 +428,10 @@
Karanbir Singh e8bece
     @property
Karanbir Singh e8bece
     def mirrorEnabled(self):
Karanbir Singh e8bece
         with _yum_lock:
Karanbir Singh e8bece
-            return "fastestmirror" in self._yum.plugins._plugins
Karanbir Singh e8bece
+            if productName.startswith("CentOS"):
Karanbir Singh e8bece
+                return 0
Karanbir Singh e8bece
+            else:
Karanbir Singh e8bece
+                return "fastestmirror" in self._yum.plugins._plugins
Karanbir Singh e8bece
 
Karanbir Singh e8bece
     def getRepo(self, repo_id):
Karanbir Singh e8bece
         """ Return the yum repo object. """