-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rhel/fedora fixes #1851
base: alpha
Are you sure you want to change the base?
rhel/fedora fixes #1851
Conversation
@@ -229,7 +229,7 @@ os_dependencies() { | |||
pkg_list="${pkg_list} libusb ncurses-compat-libs pkgconfig" | |||
elif [[ "${VERSION_ID}" =~ "8" ]] || [[ "${VERSION_ID}" =~ "9" ]]; then | |||
#RHEL/CentOS/RockyLinux 8/9 | |||
pkg_opts="${pkg_opts} --allowerasing" | |||
if ${pkgmgrcmd} -h | grep -q "\--allowerasing"; then pkg_opts="${pkg_opts} --allowerasing"; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for dnf v4 as the root usage menu displays this as a General DNF option. However, in dnf v5 --allowerasing
no longer visible here, it is only visible in the usage for Options of the applicable subcommands.
This can be used to achieve your goal as both v4 and v5 list this in the usage menu for the install and update subcommands:
if ${pkgmgrcmd} -h | grep -q "\--allowerasing"; then pkg_opts="${pkg_opts} --allowerasing"; fi | |
if ${pkgmgrcmd} install -h | grep -q "\--allowerasing"; then pkg_opts="${pkg_opts} --allowerasing"; fi |
@@ -238,7 +238,7 @@ os_dependencies() { | |||
fi | |||
elif [[ "${DISTRO}" =~ Fedora ]]; then | |||
#Fedora | |||
pkg_opts="${pkg_opts} --allowerasing" | |||
if ${pkgmgrcmd} -h | grep -q "\--allowerasing"; then pkg_opts="${pkg_opts} --allowerasing"; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above comment for dnf v4 vs. v5:
if ${pkgmgrcmd} -h | grep -q "\--allowerasing"; then pkg_opts="${pkg_opts} --allowerasing"; fi | |
if ${pkgmgrcmd} install -h | grep -q "\--allowerasing"; then pkg_opts="${pkg_opts} --allowerasing"; fi |
Description
guild-deploy fixes for recent RHEL / Fedora versions