From 088762f1eec2a36046564441b8cfddebce1f6432 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 7 Sep 2024 10:41:59 +0200 Subject: [PATCH] pkg/install --- spcd/bootstrap.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index b5bb636..71eb6be 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -837,18 +837,6 @@ spcd_https_path() { esac } -spcd_install_package() { - case "${SPCD_PM}" in - "${SPCD_PM_APK}") spcd_eval apk add "${1}" ;; - "${SPCD_PM_APT}") spcd_eval apt-get install --assume-yes "${1}" ;; - "${SPCD_PM_DNF}") spcd_eval dnf install --assumeyes "${1}" ;; - "${SPCD_PM_PACMAN}") spcd_eval pacman --sync --noconfirm "${1}" ;; - "${SPCD_PM_ZYPPER}") spcd_eval zypper --non-interactive install "${1}" ;; - *) ;; - esac - spcd_clean_cache -} - spcd_python_ln() { local command="${1}" if [ -n "${command}" ]; then @@ -1027,6 +1015,18 @@ ${name}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET} # │ e │ packages │ # ╰───┴──────────╯ +spcd_install_package() { + case "${SPCD_PM}" in + "${SPCD_PM_APK}") spcd_eval apk add "${1}" ;; + "${SPCD_PM_APT}") spcd_eval apt-get install --assume-yes "${1}" ;; + "${SPCD_PM_DNF}") spcd_eval dnf install --assumeyes "${1}" ;; + "${SPCD_PM_PACMAN}") spcd_eval pacman --sync --noconfirm "${1}" ;; + "${SPCD_PM_ZYPPER}") spcd_eval zypper --non-interactive install "${1}" ;; + *) ;; + esac + spcd_clean_cache +} + spcd_query_package() { case "${SPCD_PM}" in "${SPCD_PM_APK}") apk info "${1}" ;;