dpolovinkin / rpms / anaconda

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