aboutsummaryrefslogtreecommitdiffstats
path: root/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@yahooinc.com>2022-06-07 09:24:58 +0200
committerArnstein Ressem <aressem@yahooinc.com>2022-06-08 11:41:30 +0200
commite68334191733421bd3772b224a81b1abbb080424 (patch)
tree9a6a5523c6fdbcf3a13f290455049e5418e6e817 /screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh
parent38e71d4979792c42b0d163268ad1335cf3176b37 (diff)
Use CentOS Stream 8 on Vespa 8
Diffstat (limited to 'screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh')
-rwxr-xr-xscrewdriver/publish-unpublished-rpms-to-jfrog-cloud.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh b/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh
index dd0c953b424..3bcb4e101a5 100755
--- a/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh
+++ b/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh
@@ -13,7 +13,7 @@ if [[ ! -f /etc/yum.repos.d/group_vespa-vespa-epel-7.repo ]]; then
cat << 'EOF' > /etc/yum.repos.d/group_vespa-vespa-epel-7.repo
[copr:copr.fedorainfracloud.org:group_vespa:vespa]
name=Copr repo for vespa owned by @vespa
-baseurl=https://copr-be.cloud.fedoraproject.org/results/@vespa/vespa/epel-7-$basearch/
+baseurl=https://download.copr.fedorainfracloud.org/results/@vespa/vespa/centos-stream-8-$basearch/
type=rpm-md
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/@vespa/vespa/pubkey.gpg
@@ -27,7 +27,7 @@ if [[ ! -f /etc/yum.repos.d/vespa.repo ]]; then
cat << 'EOF' > /etc/yum.repos.d/vespa.repo
[vespa-release]
name=Vespa releases
-baseurl=https://artifactory.yahooinc.com/artifactory/vespa/centos/7/release/$basearch
+baseurl=https://artifactory.yahooinc.com/artifactory/vespa/centos/8/release/$basearch
gpgcheck=0
enabled=1
EOF
@@ -36,16 +36,16 @@ fi
readonly COPR_PACKAGES=$(mktemp)
trap "rm -f $COPR_PACKAGES" EXIT
-yum list -q --disablerepo='*' --enablerepo=copr:copr.fedorainfracloud.org:group_vespa:vespa --showduplicates 'vespa*' | grep "Available Packages" -A 100000 | tail -n +2 | sed "s/\.x86_64\ */-/"| awk '{print $1}' > $COPR_PACKAGES
+dnf list -q --disablerepo='*' --enablerepo=copr:copr.fedorainfracloud.org:group_vespa:vespa --showduplicates 'vespa*' | grep "Available Packages" -A 100000 | tail -n +2 | sed "s/\.x86_64\ */-/"| awk '{print $1}' > $COPR_PACKAGES
echo "Packages on Copr:"
cat $COPR_PACKAGES
echo
for pv in $(cat $COPR_PACKAGES); do
- if ! yum list -q --disablerepo='*' --enablerepo=vespa-release $pv &> /dev/null; then
+ if ! dnf list -q --disablerepo='*' --enablerepo=vespa-release $pv &> /dev/null; then
echo "$pv not found on JFrog Clould. Downloading..."
- yumdownloader -q $pv
+ dnf download -q $pv
echo "$pv downloaded."
fi
done