Added list of uploaded rpm
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user