dpolovinkin / rpms / anaconda

Forked from rpms/anaconda 3 years ago
Clone

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

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