From cedc351bbd5422d04e4df53551fc698d54346ca6 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Wed, 18 Jun 2025 15:17:36 +0200 Subject: [PATCH] templates/packer: fix installing rpms from copr There are now 2 colons present, one separating the epoch and the version, and one before the comment. --- templates/packer/ansible/roles/common/tasks/packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/packer/ansible/roles/common/tasks/packages.yml b/templates/packer/ansible/roles/common/tasks/packages.yml index 0fc87313f..c9f578a20 100644 --- a/templates/packer/ansible/roles/common/tasks/packages.yml +++ b/templates/packer/ansible/roles/common/tasks/packages.yml @@ -127,7 +127,7 @@ shell: | dnf copr enable -y @osbuild/osbuild-composer COMPOSER_COMMIT_SHORT=$(echo {{ COMPOSER_COMMIT }} | head -c 9) - COMPOSER_RPMS=$(dnf search -q --showduplicates osbuild-composer | grep -E "osbuild-composer-worker-[0-9]+.*g$COMPOSER_COMMIT_SHORT.*{{ ansible_architecture }}" | cut -f 1 -d ':') + COMPOSER_RPMS=$(dnf search -q --showduplicates osbuild-composer | grep -E "osbuild-composer-worker-[0-9]+.*g$COMPOSER_COMMIT_SHORT.*{{ ansible_architecture }}" | cut -f 1-2 -d ':') if [ -z $COMPOSER_RPMS ]; then echo $COMPOSER_COMMIT_SHORT worker rpms not available for on @osbuild/osbuild-composer copr exit 1