Added list of uploaded rpm

This commit is contained in:
Alexey Berezhok
2026-04-18 00:11:36 +03:00
parent 6139670677
commit 0828293f36
9 changed files with 171 additions and 2 deletions

View File

@@ -572,6 +572,17 @@ class ProjectsActions
return "Ошибка при создании файла: #{e.message}"
end
@db.add_custom_rpm_to_proj(id, File.basename(rpm_file[:filename]), target_file)
nil
end
def get_project_uploaded_rpms(id)
list = []
rpm_list = @db.get_project_uploaded_rpms(id)
rpm_list.each do |item|
list << item if File.exist?(item[:rpm_path])
end
list
end
end