Tweak crb script. Fix for RHEL rhui repos (#2308671)

Signed-off-by: Troy Dawson <tdawson@redhat.com>
epel9 imports/epel9/epel-release-9-8.el9
Troy Dawson 6 months ago
parent 3a30f9e7dd
commit 31d354c752

4
crb

@ -27,7 +27,7 @@ usage() {
# Show the status # Show the status
show_status()( show_status()(
# Determine if a version of CRB is enabled # Determine if a version of CRB is enabled
crb_repo=$(dnf repolist | grep -i -e crb -e powertools -e codeready | grep -v -i -e debug -e source -e eus -e virt | awk '{print $1}') crb_repo=$(dnf repolist | grep -i -e crb -e powertools -e codeready | grep -v -i -e debug -e source -e eus -e virt -e rhui | awk '{print $1}')
if [ "${crb_repo}" == "" ] ; then if [ "${crb_repo}" == "" ] ; then
echo "CRB repo is disabled" echo "CRB repo is disabled"
else else
@ -39,7 +39,7 @@ show_status()(
enable_disable_repo(){ enable_disable_repo(){
command="$1" command="$1"
# Determine which repo we need to change # Determine which repo we need to change
crb_repo=$(dnf repolist --all | grep -i -e crb -e powertools -e codeready | grep -v -i -e debug -e source -e eus -e virt | awk '{print $1}') crb_repo=$(dnf repolist --all | grep -i -e crb -e powertools -e codeready | grep -v -i -e debug -e source -e eus -e virt -e rhui | awk '{print $1}')
# Determine if we are on RHEL or not, then do the correct steps # Determine if we are on RHEL or not, then do the correct steps
source /etc/os-release source /etc/os-release

@ -6,7 +6,7 @@
Name: epel-release Name: epel-release
Version: 9 Version: 9
Release: 7%{dist} Release: 8%{dist}
Summary: Extra Packages for Enterprise Linux repository configuration Summary: Extra Packages for Enterprise Linux repository configuration
License: GPLv2 License: GPLv2
@ -133,6 +133,9 @@ fi
%changelog %changelog
* Fri Aug 30 2024 Troy Dawson <tdawson@redhat.com> - 9-8
- Tweak crb script. Fix for RHEL rhui repos (#2308671)
* Thu Aug 17 2023 Neal Gompa <ngompa@fedoraproject.org> - 9-7 * Thu Aug 17 2023 Neal Gompa <ngompa@fedoraproject.org> - 9-7
- Fix typo to actually enable EPEL OpenH264 repo - Fix typo to actually enable EPEL OpenH264 repo

Loading…
Cancel
Save