neil / rpms / anaconda

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