Selective reinstall with dnf
This commit is contained in:
@@ -516,7 +516,9 @@ install_package() {
|
|||||||
((allow_downgrades)) && install_flags+=(--allowerasing)
|
((allow_downgrades)) && install_flags+=(--allowerasing)
|
||||||
((no_gpg_check)) && install_flags+=(--nogpgcheck)
|
((no_gpg_check)) && install_flags+=(--nogpgcheck)
|
||||||
((refresh)) && install_flags+=(--refresh)
|
((refresh)) && install_flags+=(--refresh)
|
||||||
((reinstall)) && PKG_INSTALL=("${PKG_INSTALL[@]/install/reinstall}")
|
if ((reinstall)) && [[ ${#pkg_array[@]} -eq 1 ]] && "${PKG_QUERY[@]}" "${pkg_array[0]}" &>/dev/null; then
|
||||||
|
PKG_INSTALL=("${PKG_INSTALL[@]/install/reinstall}")
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
suse)
|
suse)
|
||||||
((no_gpg_check)) && install_flags+=(--allow-unsigned-rpm) ;;
|
((no_gpg_check)) && install_flags+=(--allow-unsigned-rpm) ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user