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.
This commit is contained in:
Sanne Raymaekers 2025-06-18 15:17:36 +02:00 committed by Tomáš Hozza
parent c4430ffa7a
commit cedc351bbd

View file

@ -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