diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index d073a35..f7b161d 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -1038,6 +1038,18 @@ spcd_f_pm_query() { 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_step "Upgrade" case "${SPCD_PM}" in @@ -1273,18 +1285,6 @@ SSLVerify = No 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 "Install tools" case "${SPCD_PM}" in