neil / rpms / anaconda

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