netgod / rpms / anaconda

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