Allow broken depenencies with dnf

This commit is contained in:
2021-12-28 10:41:22 -05:00
parent 92a46d675e
commit 1903ed4465

View File

@@ -426,7 +426,7 @@ installPackage() {
local -a _pkg_array _install_flags
local _pkg _nocheck _silent _return
if _input=$(getopt -o +s -l nocheck,nogpgcheck,silent -- "$@"); then
if _input=$(getopt -o +s -l nocheck,nogpgcheck,skip-broken,silent -- "$@"); then
eval set -- "$_input"
while true; do
case "$1" in
@@ -440,6 +440,11 @@ installPackage() {
_install_flags+=("--allow-unsigned-rpm")
fi
;;
--skip-broken)
if [[ "$ID" =~ ^(fedora|centos)$ ]]; then
_install_flags+=("--skip-broken")
fi
;;
--silent|-s)
_silent=true
;;