netgod / rpms / anaconda

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