Added deleting of signed rpms on clean rpms

master
Alexey Berezhok 6 days ago
parent 5f784270e2
commit 5e59ea319f

@ -405,6 +405,12 @@ class ProjectsActions
end
end
rpm_signed_list = get_rpms_list(sign_repo_path)
if rpm_signed_list.length > rpm_list.length
rpms_for_delete = get_rpms_list_full(sign_repo_path)
rpms_for_delete.each do |item|
File.unlink(item)
end
end
rpm_list = rpm_list.select do |item|
sign_repo_path_rpm = File.join(sign_repo_path, item)
unless File.exist?(sign_repo_path_rpm)

Loading…
Cancel
Save