dnf-json: do not use reponame as repoid.
Repo name defaults to the repo ID if the name is not set. `dnf-json` should not rely on the `reponame` being set to the ID and intsead return the actual `repoid`. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
c4c7f44fcb
commit
f9d0412316
1 changed files with 2 additions and 2 deletions
4
dnf-json
4
dnf-json
|
|
@ -205,7 +205,7 @@ class Solver():
|
|||
"summary": package.summary,
|
||||
"description": package.description,
|
||||
"url": package.url,
|
||||
"repo_id": package.reponame,
|
||||
"repo_id": package.repoid,
|
||||
"epoch": package.epoch,
|
||||
"version": package.version,
|
||||
"release": package.release,
|
||||
|
|
@ -235,7 +235,7 @@ class Solver():
|
|||
"version": package.version,
|
||||
"release": package.release,
|
||||
"arch": package.arch,
|
||||
"repo_id": package.reponame,
|
||||
"repo_id": package.repoid,
|
||||
"path": package.relativepath,
|
||||
"remote_location": package.remote_location(),
|
||||
"checksum": (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue