neil / rpms / anaconda

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