dnf repoquery (as opposed to old repoquery) is caching the metadata. Make sure we have fresh metadata when checking available version.
@@ -32,6 +32,7 @@ cd vespa
dist/release-vespa-rpm.sh $VESPA_RELEASE $VESPA_REF
while [ "$VESPA_RELEASE" != "$VESPA_RPM" ]; do
+ dnf clean --repofrompath=vespa,https://copr-be.cloud.fedoraproject.org/results/@vespa/vespa/epel-7-x86_64 --repoid=vespa metadata
VESPA_RPM=$(dnf repoquery --repofrompath=vespa,https://copr-be.cloud.fedoraproject.org/results/@vespa/vespa/epel-7-x86_64 --repoid=vespa -q vespa | tail -1 | cut -d: -f2 | cut -d- -f1)
echo "RPM: $VESPA_RPM"
sleep 150
