Lon Hohberger 887546d927 Fix backward regex match
'9-stream' was being matched against the regex '9',
causing builds on RHEL9 to try to install C9S RPMs.
We want this the other way so that DIB_RELEASE=9
will not match the regex '9-stream'.

Resolves: rhbz#2097443

Signed-off-by: Lon Hohberger <lhh@redhat.com>
Change-Id: Iefd7c23512c460e33117d12bbc33606134daa9e2
2022-06-15 13:58:24 -04:00

13 lines
1009 B
Plaintext
Executable File

# NOTE(ianw) 2022-06-09 : this is a workaround for setfiles
# failing until libselinux-3.4-2.el9.x86_64.rpm
# https://bugzilla.redhat.com/show_bug.cgi?id=2094683
if [[ ${DIB_RELEASE} =~ '9-stream' ]]; then
sudo dnf update -y \
https://kojihub.stream.centos.org/kojifiles/packages/libselinux/3.4/2.el9/x86_64/libselinux-3.4-2.el9.x86_64.rpm \
https://kojihub.stream.centos.org/kojifiles/packages/libselinux/3.4/2.el9/x86_64/libselinux-utils-3.4-2.el9.x86_64.rpm \
https://kojihub.stream.centos.org/kojifiles/packages/libselinux/3.4/2.el9/x86_64/python3-libselinux-3.4-2.el9.x86_64.rpm \
https://kojihub.stream.centos.org/kojifiles/packages/libselinux/3.4/2.el9/x86_64/libselinux-static-3.4-2.el9.x86_64.rpm \
https://kojihub.stream.centos.org/kojifiles/packages/libselinux/3.4/2.el9/x86_64/libselinux-ruby-3.4-2.el9.x86_64.rpm \
https://kojihub.stream.centos.org/kojifiles/packages/libselinux/3.4/2.el9/x86_64/libselinux-devel-3.4-2.el9.x86_64.rpm
fi