tools/osbuild-mpp: include nevra in package list

Include the nevra in the list of dep-solved packages. Use that for the
package info. Adapt the boot manifest accordingly.
This commit is contained in:
Christian Kellner 2021-06-30 22:09:00 +00:00
parent ff76b6fade
commit 8a27de0d10
2 changed files with 3 additions and 2 deletions

View file

@ -70,7 +70,7 @@
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
"kernel_opts": "ro biosdevname=0 net.ifnames=0",
"legacy": "i386-pc",
"saved_entry": {"mpp-format-string": "ffffffffffffffffffffffffffffffff-{rpms['stages']['kernel-core'][12:-4]}" }
"saved_entry": {"mpp-format-string": "ffffffffffffffffffffffffffffffff-{rpms['stages']['kernel-core'][12:]}" }
}
},
{

View file

@ -282,6 +282,7 @@ class DepSolver:
pkg = {
"checksum": f"{checksum_type}:{checksum_hex}",
"name": tsi.pkg.name,
"nevra": str(tsi.pkg),
"url": url,
}
@ -372,7 +373,7 @@ class ManifestFile:
for dep in deps:
name, checksum, url = dep["name"], dep["checksum"], dep["url"]
pkginfos[name] = urllib.parse.urlparse(url).path.rsplit("/", 1)[1]
pkginfos[name] = dep["nevra"]
secretes = dep.get("secrets")
if secretes: