diff --git a/classes/projects.rb b/classes/projects.rb index a36482e..b4f4dd0 100644 --- a/classes/projects.rb +++ b/classes/projects.rb @@ -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)