Skip to content

Commit f272935

Browse files
committed
Updated CI scripts
1 parent 7ffcc28 commit f272935

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/ci-setup

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ elif [ "${ID}" == "fedora" ] ; then
173173
PACKAGES="${PACKAGES} fedora-release findutils mock nosync rpmdevtools which strace sudo"
174174
fi
175175

176+
# Enable COPR PPA:
177+
dnf copr enable -y dreibh/ppa
178+
176179
# dnf upgrade -qy
177180
# shellcheck disable=SC2086
178181
dnf install -qy ${PACKAGES}
@@ -191,9 +194,10 @@ elif [ "${ID}" == "fedora" ] ; then
191194
ARCH="$(uname -m)"
192195
fi
193196

197+
# ====== Enable COPR PPA ==============================================
194198
if ! grep "^\[copr-dreibh-ppa\]" "/etc/mock/${OS}-${DIST}-${ARCH}.cfg" ; then
195199
shopt -s extglob
196-
ppa="config_opts['dnf.conf'] += \"\"\"\n[copr-dreibh-ppa]\nname=Copr repo for ppa owned by dreibh\nbaseurl=https://copr-be.cloud.fedoraproject.org/results/dreibh/ppa/fedora-\$releasever-\$basearch/\ntype=rpm-md\nskip_if_unavailable=True\ngpgcheck=1\ngpgkey=https://copr-be.cloud.fedoraproject.org/results/dreibh/ppa/pubkey.gpg\nrepo_gpgcheck=0\nenabled=1\n\"\"\""
200+
ppa="config_opts['dnf.conf'] += \"\"\"\n[copr-dreibh-ppa]\nname=Copr repo for ppa owned by dreibh\nbaseurl=https://download.copr.fedorainfracloud.org/results/dreibh/ppa/fedora-\$releasever-\$basearch/\ntype=rpm-md\nskip_if_unavailable=True\ngpgcheck=1\ngpgkey=https://copr-be.cloud.fedoraproject.org/results/dreibh/ppa/pubkey.gpg\nrepo_gpgcheck=0\nenabled=1\nenabled_metadata=1\n\"\"\""
197201
ppa="${ppa//+( )$/\\n}"
198202
echo -e "${ppa}" | tee -a "/etc/mock/${OS}-${DIST}-${ARCH}.cfg"
199203
if ! grep "^\[copr-dreibh-ppa\]" "/etc/mock/${OS}-${DIST}-${ARCH}.cfg" ; then

0 commit comments

Comments
 (0)