From ba26f3de511d356e4185c2c9cfed346650e3c32d Mon Sep 17 00:00:00 2001 From: Aleksandra Fedorova Date: Jul 10 2024 14:40:37 +0000 Subject: Use only the first line for SRPM url Sometimes we have yumdownloader providing duplicate output and it causes the incorrect URL to be sent further down the pipeline. This fix doesn't address the root cause, but it makes us ignore the duplicate lines when they happen and allows to proceed with fetching SRPM file correctly. Related: https://pagure.io/fedora-ci/general/issue/480 --- diff --git a/roles/rpm-artifact-url/tasks/main.yaml b/roles/rpm-artifact-url/tasks/main.yaml index 5ac8d97..a462204 100644 --- a/roles/rpm-artifact-url/tasks/main.yaml +++ b/roles/rpm-artifact-url/tasks/main.yaml @@ -35,4 +35,4 @@ - name: Set srpm URL set_fact: - srpm: "{{ package_srpm.stdout }}" + srpm: "{{ package_srpm.stdout_lines[0]}}"