Skip to content

Commit

Permalink
feat(ci): add dnf makecache to ensure repo is up-to-date
Browse files Browse the repository at this point in the history
This prevents the output of  "Importing GPG key 0x0D35DA7B" during the list.
  • Loading branch information
esolitos authored and gitbutler-client committed Oct 2, 2024
1 parent 07f16c8 commit cdb1340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/delete-old-cloudsmith-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ curl --silent --show-error --location --fail \
--tlsv1 --output /tmp/vespa-open-source-rpms.repo \
'https://dl.cloudsmith.io/public/vespa/open-source-rpms/config.rpm.txt?distro=el&codename=8'
dnf config-manager --add-repo '/tmp/vespa-open-source-rpms.repo'
dnf makecache -y --quiet --repo=vespa-open-source-rpms
rm -f /tmp/vespa-open-source-rpms.repo

dnf list -y --quiet --showduplicates --disablerepo='*' --enablerepo=vespa-open-source-rpms vespa >/tmp/dnf-stdout 2>/tmp/dnf-stderr || true
dnf list -y --quiet --showduplicates --repo=vespa-open-source-rpms vespa >/tmp/dnf-stdout 2>/tmp/dnf-stderr || true
DNF_STDERR="$(cat /tmp/dnf-stderr)"
DNF_STDOUT="$(cat /tmp/dnf-stdout)"
if [[ "${DNF_STDERR}" == "Error: No matching Packages to list" ]]; then
Expand Down

0 comments on commit cdb1340

Please sign in to comment.