Fixed repoview generator

This commit is contained in:
Alexey Berezhok
2025-12-05 00:06:26 +03:00
parent 482a586b6e
commit 97ee27fe79
2 changed files with 2 additions and 5 deletions

View File

@@ -103,7 +103,8 @@ class RepoManager
pkg_info[:stat] = File.stat(full_rpm_path).ctime
pkg_info[:pname] = "noname"
if info[:error].nil?
pkg_info[:chlog] = info[:pkginfo].changelog.first(5)
pkg_info[:chlog] = []
pkg_info[:chlog] << info[:pkginfo].changelog.first
pkg_info[:pname] = info[:pkginfo].name
else
pkg_info[:chlog] = []
@@ -153,8 +154,6 @@ class RepoManager
end
end
pp repo_data
tpl_file = File.join(template_dir, "template.erb")
template = File.read(tpl_file)
renderer = ERB.new(template)