avij / rpms / anaconda

Forked from rpms/anaconda 5 years ago
Clone

Blame SOURCES/anaconda-centos-disable-mirrors.patch

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