Added deleting of signed rpms on clean rpms
This commit is contained in:
@@ -405,6 +405,12 @@ class ProjectsActions
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
rpm_signed_list = get_rpms_list(sign_repo_path)
|
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|
|
rpm_list = rpm_list.select do |item|
|
||||||
sign_repo_path_rpm = File.join(sign_repo_path, item)
|
sign_repo_path_rpm = File.join(sign_repo_path, item)
|
||||||
unless File.exist?(sign_repo_path_rpm)
|
unless File.exist?(sign_repo_path_rpm)
|
||||||
|
|||||||
Reference in New Issue
Block a user