Fix openSUSE package management issues

- Make apt cleanup conditional for apt-based distros only
- Change zypper options from -q to --quiet for compatibility
- Add progress bar consistency for openSUSE updates
This commit is contained in:
Mărcziem ™
2025-10-06 10:16:15 +02:00
parent 0b508c822e
commit 9d27968c71

View File

@@ -387,8 +387,9 @@ update_system() {
sudo pacman -Syu --noconfirm --quiet
;;
opensuse)
sudo zypper refresh -q
sudo zypper update -y -q
sudo zypper refresh --quiet
show_progress 5 10 "System Update"
sudo zypper update -y --quiet
;;
esac
@@ -732,7 +733,12 @@ main() {
# Main installation
log_info "Starting installation process..."
# Run apt cleanup only for apt-based distributions
if [[ "$DISTRO" == "ubuntu" || "$DISTRO" == "debian" ]]; then
preflight_apt_cleanup
fi
update_system
run_installation