Added deleting of signed rpms on clean rpms

This commit is contained in:
Alexey Berezhok
2025-12-23 23:45:33 +03:00
parent 5f784270e2
commit 5e59ea319f

View File

@@ -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)