dnf-json: move releasever and basearch into URL
This commit is contained in:
parent
cae1fdd04d
commit
8ed07ed9cb
1 changed files with 1 additions and 4 deletions
5
dnf-json
5
dnf-json
|
|
@ -17,12 +17,9 @@ arguments = call.get("arguments", {})
|
|||
|
||||
base = dnf.Base()
|
||||
|
||||
base.conf.substitutions["releasever"] = "30"
|
||||
base.conf.substitutions["basearch"] = "x86_64"
|
||||
|
||||
repo = dnf.repo.Repo("fedora", base.conf)
|
||||
repo.name = "Fedora"
|
||||
repo.metalink = "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch"
|
||||
repo.metalink = "https://mirrors.fedoraproject.org/metalink?repo=fedora-30&arch=x86_64"
|
||||
|
||||
base.repos.add(repo)
|
||||
base.fill_sack(load_system_repo=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue