From 391dcb73ccd693f4f77eff520de84a281be22724 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Jul 12 2024 09:57:37 +0000 Subject: Ensure unicity of the rpms list of packages to download For a yet unknown reason the list of packages is duplicated leading to a rpminspect job being twice longer than before. Let's try with the defensive approach as a workaround. --- diff --git a/roles/rpm-artifact-url/tasks/main.yaml b/roles/rpm-artifact-url/tasks/main.yaml index a462204..2c1f648 100644 --- a/roles/rpm-artifact-url/tasks/main.yaml +++ b/roles/rpm-artifact-url/tasks/main.yaml @@ -26,7 +26,7 @@ - name: Set list of RPMs URL fact set_fact: - rpms: "{{ rpms_str.split() }}" + rpms: "{{ rpms_str.split() | unique }}" - name: Get srpm url command: yumdownloader -q --source --url {{ rpms[-1] }}