dpolovinkin / rpms / anaconda

Forked from rpms/anaconda 3 years ago
Clone

Blame SOURCES/yumpayload-dont-verify-disabled-repos.patch

6e5b62
diff -uNrp anaconda-21.48.22.121.orig/pyanaconda/packaging/yumpayload.py anaconda-21.48.22.121/pyanaconda/packaging/yumpayload.py
6e5b62
--- anaconda-21.48.22.121.orig/pyanaconda/packaging/yumpayload.py	2017-04-27 08:09:33.000000000 -0500
6e5b62
+++ anaconda-21.48.22.121/pyanaconda/packaging/yumpayload.py	2017-09-04 00:21:23.617491857 -0500
6e5b62
@@ -206,6 +206,10 @@ class YumPayload(PackagePayload):
6e5b62
         """Save repomd.xml files for later test for availability."""
6e5b62
         self._repoMD_list = []
6e5b62
         for repoID in self.repos:
6e5b62
+            if not self.isRepoEnabled(repoID):
6e5b62
+                log.info("Not checking metadata for disabled repo %s", repoID)
6e5b62
+                continue
6e5b62
+
6e5b62
             repo = self.getRepo(repoID)
6e5b62
             with _yum_lock:
6e5b62
                 repoMD = RepoMDMetaHash(self, repo)