pkg/update

This commit is contained in:
Marc Beninca 2024-09-08 19:28:14 +02:00
parent eaa19846b8
commit 14ef58e1fc
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1004,18 +1004,6 @@ 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
@ -1108,6 +1096,18 @@ spcd_f_pm_pkg_install() {
spcd_f_pm_pkg_clean 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 │ # │ s │ dns │
# ╰───┴─────╯ # ╰───┴─────╯
@ -1580,7 +1580,7 @@ spcd_main() {
spcd_step__packages_set_repositories spcd_step__packages_set_repositories
spcd_step__packages_set_configuration spcd_step__packages_set_configuration
spcd_f_pm_https_trust spcd_f_pm_https_trust
spcd_f_pm_update spcd_f_pm_pkg_update
spcd_step__packages_install_tools spcd_step__packages_install_tools
spcd_step__packages_install_locales spcd_step__packages_install_locales
spcd_step_out spcd_step_out
@ -1593,7 +1593,7 @@ spcd_main() {
# packages # packages
spcd_step_in "Packages" spcd_step_in "Packages"
spcd_f_pm_https_verify spcd_f_pm_https_verify
spcd_f_pm_update spcd_f_pm_pkg_update
spcd_f_pm_upgrade spcd_f_pm_upgrade
spcd_step__packages_install_dos2unix spcd_step__packages_install_dos2unix
spcd_step__packages_install_git spcd_step__packages_install_git