This commit is contained in:
Marc Beninca 2024-09-07 12:34:08 +02:00
parent e647554a48
commit 040b1f03e4
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1038,6 +1038,18 @@ spcd_f_pm_query() {
esac esac
} }
spcd_f_pm_update() {
spcd_step "Update"
case "${SPCD_PM}" in
"${SPCD_PM_APK}") spcd_run apk update ;;
"${SPCD_PM_APT}") spcd_run apt-get update ;;
"${SPCD_PM_DNF}") spcd_run dnf makecache ;;
"${SPCD_PM_PACMAN}") spcd_run pacman --sync --refresh ;;
"${SPCD_PM_ZYPPER}") spcd_run zypper refresh ;;
*) ;;
esac
}
spcd_f_pm_upgrade() { spcd_f_pm_upgrade() {
spcd_step "Upgrade" spcd_step "Upgrade"
case "${SPCD_PM}" in case "${SPCD_PM}" in
@ -1273,18 +1285,6 @@ SSLVerify = No
fi fi
} }
spcd_f_pm_update() {
spcd_step "Update"
case "${SPCD_PM}" in
"${SPCD_PM_APK}") spcd_run apk update ;;
"${SPCD_PM_APT}") spcd_run apt-get update ;;
"${SPCD_PM_DNF}") spcd_run dnf makecache ;;
"${SPCD_PM_PACMAN}") spcd_run pacman --sync --refresh ;;
"${SPCD_PM_ZYPPER}") spcd_run zypper refresh ;;
*) ;;
esac
}
spcd_step__packages_install_tools() { spcd_step__packages_install_tools() {
spcd_step "Install tools" spcd_step "Install tools"
case "${SPCD_PM}" in case "${SPCD_PM}" in