/[smeserver]/rpms/anaconda/sme10/anaconda-centos-disable-mirrors.patch
ViewVC logotype

Contents of /rpms/anaconda/sme10/anaconda-centos-disable-mirrors.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Jun 10 03:58:46 2020 UTC (4 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: anaconda-21_48_22_159-1_el7_centos, anaconda-21_48_22_158-1_el7_centos, HEAD
Changes since 1.1: +13 -16 lines
*** empty log message ***

1 diff -uNrp anaconda-21.48.22.121.orig/pyanaconda/packaging/yumpayload.py anaconda-21.48.22.121/pyanaconda/packaging/yumpayload.py
2 --- anaconda-21.48.22.121.orig/pyananconda/packaging/yumpayload.py 2017-08-31 16:28:06.672265889 +0000
3 +++ anaconda-21.48.22.121/pyanaconda/packaging/yumpayload.py 2017-08-31 16:28:38.812826778 +0000
4 @@ -42,6 +42,7 @@ import time
5 import hashlib
6 from pyanaconda.packaging import SSLOptions
7 from pyanaconda.iutil import execReadlines, ipmi_abort
8 +from pyanaconda.product import productName
9 from pyanaconda.simpleconfig import simple_replace
10 from functools import wraps
11 from urlgrabber.grabber import URLGrabber, URLGrabError
12 @@ -540,12 +541,16 @@ reposdir=%s
13 @property
14 def mirrorEnabled(self):
15 with _yum_lock:
16 - # yum initializes with plugins disabled, and when plugins are disabled
17 - # _yum.plugins is a DummyYumPlugins object, which has no useful attributes.
18 - if hasattr(self._yum.plugins, "_plugins"):
19 - return "fastestmirror" in self._yum.plugins._plugins
20 + # we just skip this on CentOS since we cant support it yet
21 + if productName.startswith("CentOS"):
22 + return False
23 else:
24 - return False
25 + # yum initializes with plugins disabled, and when plugins are disabled
26 + # _yum.plugins is a DummyYumPlugins object, which has no useful attributes.
27 + if hasattr(self._yum.plugins, "_plugins"):
28 + return "fastestmirror" in self._yum.plugins._plugins
29 + else:
30 + return False
31
32 def getRepo(self, repo_id):
33 """Return the yum repo object."""

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed