pkg/clean

This commit is contained in:
Marc Beninca 2024-09-07 10:45:07 +02:00
parent 217f1a1b73
commit de32d1ba2f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -794,17 +794,6 @@ spcd_step__environment_list_workspace() {
# │ e = environment │
# ╰─────────────────╯
spcd_clean_cache() {
case "${SPCD_PM}" in
"${SPCD_PM_APK}") spcd_eval apk cache purge ;;
"${SPCD_PM_APT}") spcd_eval apt-get clean ;;
"${SPCD_PM_DNF}") spcd_eval dnf clean all ;;
"${SPCD_PM_PACMAN}") spcd_eval pacman --sync --clean --noconfirm ;;
"${SPCD_PM_ZYPPER}") spcd_eval zypper clean ;;
*) ;;
esac
}
spcd_git_clone() {
if [ -n "${1}" ]; then
local name path url
@ -1004,6 +993,17 @@ ${name}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET}
# │ e │ packages │
# ╰───┴──────────╯
spcd_clean_cache() {
case "${SPCD_PM}" in
"${SPCD_PM_APK}") spcd_eval apk cache purge ;;
"${SPCD_PM_APT}") spcd_eval apt-get clean ;;
"${SPCD_PM_DNF}") spcd_eval dnf clean all ;;
"${SPCD_PM_PACMAN}") spcd_eval pacman --sync --clean --noconfirm ;;
"${SPCD_PM_ZYPPER}") spcd_eval zypper clean ;;
*) ;;
esac
}
spcd_https_path() {
case "${SPCD_PM}" in
"${SPCD_PM_APK}") echo "/etc/apk/repositories.d/https" ;;