dnf-json: use repository name from the request if provided
Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
43dafe87fb
commit
180290d016
1 changed files with 2 additions and 0 deletions
2
dnf-json
2
dnf-json
|
|
@ -139,6 +139,8 @@ class Solver():
|
|||
|
||||
repo = dnf.repo.Repo(desc["id"], parent_conf)
|
||||
|
||||
if "name" in desc:
|
||||
repo.name = desc["name"]
|
||||
if "baseurl" in desc:
|
||||
repo.baseurl = desc["baseurl"]
|
||||
elif "metalink" in desc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue