Skip to content

Commit

Permalink
fix: Try to add some debug print to figure out, what is wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
jirihnidek committed Nov 18, 2024
1 parent 17e3873 commit 58dee65
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions systemtest/copr-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ dnf install -y dnf-plugins-core

# Determine the repo needed from copr
source /etc/os-release

echo ">>> Debug: ID: ${ID}, VERSION_ID: ${VERSION_ID}, VERSION_MAJOR: ${VERSION_MAJOR}"

if [ "$ID" == "centos" ]; then
ID='centos-stream'
fi
VERSION_MAJOR=$(echo ${VERSION_ID} | cut -d '.' -f 1)
VERSION_MAJOR=$(echo "${VERSION_ID}" | cut -d '.' -f 1)
COPR_REPO="${ID}-${VERSION_MAJOR}-$(uname -m)"

echo ">>> Debug: COPR_REPO: ${COPR_REPO}, ghprbPullId: ${ghprbPullId}"

# Install subscription-manager from COPR repository
dnf remove -y --noautoremove subscription-manager
dnf copr -y enable packit/candlepin-subscription-manager-${ghprbPullId} ${COPR_REPO}
dnf install -y subscription-manager --disablerepo=* --enablerepo=*rhc*
dnf copr -y enable packit/candlepin-subscription-manager-"${ghprbPullId}" "${COPR_REPO}"
dnf install -y subscription-manager --disablerepo=* --enablerepo=*subscription-manager*

0 comments on commit 58dee65

Please sign in to comment.