From 14ef58e1fcdf3de3826b248c7d55a2e317e981f2 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 8 Sep 2024 19:28:14 +0200 Subject: [PATCH] pkg/update --- spcd/bootstrap.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 4c77035..2d34e5b 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -1004,18 +1004,6 @@ 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 @@ -1108,6 +1096,18 @@ spcd_f_pm_pkg_install() { spcd_f_pm_pkg_clean } +spcd_f_pm_pkg_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 +} + # ╭───┬─────╮ # │ s │ dns │ # ╰───┴─────╯ @@ -1580,7 +1580,7 @@ spcd_main() { spcd_step__packages_set_repositories spcd_step__packages_set_configuration spcd_f_pm_https_trust - spcd_f_pm_update + spcd_f_pm_pkg_update spcd_step__packages_install_tools spcd_step__packages_install_locales spcd_step_out @@ -1593,7 +1593,7 @@ spcd_main() { # packages spcd_step_in "Packages" spcd_f_pm_https_verify - spcd_f_pm_update + spcd_f_pm_pkg_update spcd_f_pm_upgrade spcd_step__packages_install_dos2unix spcd_step__packages_install_git