Skip to content

Commit 62b0b3c

Browse files
authored
use chroot when dnf-enabling copr repo (#1374)
Fix #1373
1 parent 0b934f4 commit 62b0b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/perf/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function build_test_suite() {
106106

107107
# Install and enable the repository that provides the LLVM Toolchain
108108
if [[ -n "${COPR_PROJECT}" ]]; then
109-
dnf copr enable -y ${COPR_OWNER}/${COPR_PROJECT}
109+
dnf copr enable -y ${COPR_OWNER}/${COPR_PROJECT} ${CHROOT}
110110
local repo_file=$(dnf repoinfo --json *${COPR_PROJECT}* | jq -r ".[0].repo_file_path")
111111
distname=$(rpm --eval "%{?fedora:fedora}%{?rhel:rhel}")
112112
sed -i "s/\$distname/$distname/g" $repo_file

0 commit comments

Comments
 (0)