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.
This commit is contained in:
parent
13de711548
commit
62de8c26f8
@ -291,6 +291,9 @@ def get_dnf_base_object(installroot, repositories, mirrorlists=None,
|
|||||||
|
|
||||||
# add the repositories
|
# add the repositories
|
||||||
for i, r in enumerate(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_name = "lorax-repo-%d" % i
|
||||||
repo = dnf.repo.Repo(repo_name, cachedir)
|
repo = dnf.repo.Repo(repo_name, cachedir)
|
||||||
repo.baseurl = [r]
|
repo.baseurl = [r]
|
||||||
@ -308,6 +311,9 @@ def get_dnf_base_object(installroot, repositories, mirrorlists=None,
|
|||||||
|
|
||||||
# add the mirrorlists
|
# add the mirrorlists
|
||||||
for i, r in enumerate(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_name = "lorax-mirrorlist-%d" % i
|
||||||
repo = dnf.repo.Repo(repo_name, cachedir)
|
repo = dnf.repo.Repo(repo_name, cachedir)
|
||||||
repo.mirrorlist = r
|
repo.mirrorlist = r
|
||||||
|
Loading…
Reference in New Issue
Block a user