ltmpl: Fix package logging format

epoch wasn't included in the lorax-packages.log, but arch is. And for
the debuginfo the epoch, including 0, *is* included. This should match
the previous output.

Resolves: rhbz#1815000
This commit is contained in:
Brian C. Lane 2020-03-19 08:19:32 -07:00
parent bc6a080af7
commit d6ce9c907d
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ class LoraxTemplateRunner(TemplateRunner):
pkgs = []
debug_pkgs = []
for p in list(self.dbo.transaction.install_set):
pkgs.append(f"{p.name}-{p.epoch}:{p.version}-{p.release}")
pkgs.append(f"{p.name}-{p.version}-{p.release}.{p.arch}")
if available.filter(name=p.name+"-debuginfo"):
debug_pkgs.append(f"{p.name}-debuginfo-{p.epoch}:{p.version}-{p.release}")