zengxyz / rpms / anaconda

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