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:
Tomas Hozza 2022-03-11 09:01:29 +01:00 committed by Tom Gundersen
parent c4c7f44fcb
commit f9d0412316

View file

@ -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": (