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