Skip to content

Commit 3cf71ec

Browse files
committed
Try to add custom source of lua-lmod
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com> Priority: 2 Skip-python-bandit: true Skip-unit-tests:true Skip-unit-test: true Skip-NLT: true Skip-unit-test-memcheck: true Skip-test: true Skip-func-test: true Skip-func-vm: true Skip-func-hw-test: true
1 parent 1d8dc4d commit 3cf71ec

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

utils/rpms/packaging/rpm_chrootbuild

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ EOF
5353
repo_adds=()
5454
repo_dels=()
5555

56+
# Only for Leap 15.6 chroot
57+
if [[ "${CHROOT_NAME}" == *opensuse-leap-15.6* ]]; then
58+
repo_adds+=("--enablerepo=*lua*")
59+
repo_adds+=("--enablerepo=*network-cluster*")
60+
repo_adds+=("--enablerepo=*oss-proxy*")
61+
fi
62+
5663
echo -e "config_opts['yum.conf'] += \"\"\"\n" >> mock.cfg
5764

5865
if [ -n "${ARTIFACTORY_URL:-}" ] && "$LOCAL_REPOS"; then
@@ -121,6 +128,14 @@ enabled=1\n" >> mock.cfg
121128
done
122129
echo "\"\"\"" >> mock.cfg
123130

131+
# Only for Leap 15.6 chroot
132+
if [[ "${CHROOT_NAME}" == *opensuse-leap-15.6* ]] || [[ "${DISTRO_VERSION:-}" == "15.6" ]]; then
133+
# Ensure lua-lmod is installed in the chroot
134+
cat <<'EOF' >> mock.cfg
135+
config_opts['chroot_additional_packages'] += ' lua-lmod'
136+
EOF
137+
fi
138+
124139
if [ -n "$DISTRO_VERSION" ]; then
125140
releasever_opt=("--config-opts=releasever=$DISTRO_VERSION")
126141
fi

0 commit comments

Comments
 (0)