From 62de8c26f8d662e70572c11a87032f86c7fdba6f Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 10 Feb 2015 16:15:03 -0800 Subject: [PATCH] Skip using srpm repos DNF has a bug (#1191289) when the SRPM repo isn't the first one used, and we don't need them for lorax anyway. --- src/sbin/lorax | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sbin/lorax b/src/sbin/lorax index 55871dbf..51a32ea2 100755 --- a/src/sbin/lorax +++ b/src/sbin/lorax @@ -291,6 +291,9 @@ def get_dnf_base_object(installroot, repositories, mirrorlists=None, # add the repositories for i, r in enumerate(repositories): + if "SRPM" in r or "srpm" in r: + log.info("Skipping source repo: %s" % r) + continue repo_name = "lorax-repo-%d" % i repo = dnf.repo.Repo(repo_name, cachedir) repo.baseurl = [r] @@ -308,6 +311,9 @@ def get_dnf_base_object(installroot, repositories, mirrorlists=None, # add the mirrorlists for i, r in enumerate(mirrorlists): + if "SRPM" in r or "srpm" in r: + log.info("Skipping source repo: %s" % r) + continue repo_name = "lorax-mirrorlist-%d" % i repo = dnf.repo.Repo(repo_name, cachedir) repo.mirrorlist = r