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