pm/clean
This commit is contained in:
parent
794165c012
commit
27f632eb67
1 changed files with 6 additions and 6 deletions
12
cd.sh
12
cd.sh
|
@ -151,7 +151,7 @@ cd_set_environment_variables () {
|
|||
cd_echo "CD_PM"
|
||||
case "${CD_PM}" in
|
||||
"${CD_PM_DNF}")
|
||||
CD_CMD_CLEAN="dnf clean all"
|
||||
CD_PM_CLEAN="dnf clean all"
|
||||
CD_CMD_INSTALL="dnf install --assumeyes"
|
||||
CD_CMD_QUERY="rpm --query"
|
||||
CD_CMD_UPDATE="dnf makecache"
|
||||
|
@ -170,7 +170,7 @@ skip_if_unavailable=False
|
|||
CD_PM_HTTPS_TEXT="sslverify=False"
|
||||
;;
|
||||
"${CD_PM_APK}")
|
||||
CD_CMD_CLEAN="apk cache purge"
|
||||
CD_PM_CLEAN="apk cache purge"
|
||||
CD_CMD_INSTALL="apk add"
|
||||
CD_CMD_QUERY="apk info"
|
||||
CD_CMD_UPDATE="apk update"
|
||||
|
@ -182,7 +182,7 @@ skip_if_unavailable=False
|
|||
CD_PM_HTTPS_TEXT="--no-verify"
|
||||
;;
|
||||
"${CD_PM_PACMAN}")
|
||||
CD_CMD_CLEAN="pacman --sync --clean --noconfirm"
|
||||
CD_PM_CLEAN="pacman --sync --clean --noconfirm"
|
||||
CD_CMD_INSTALL="pacman --sync --noconfirm"
|
||||
CD_CMD_QUERY="pacman --query"
|
||||
CD_CMD_UPDATE="pacman --sync --refresh"
|
||||
|
@ -194,7 +194,7 @@ skip_if_unavailable=False
|
|||
CD_PM_HTTPS_TEXT="SSLVerify = No"
|
||||
;;
|
||||
"${CD_PM_APT}")
|
||||
CD_CMD_CLEAN="apt-get clean"
|
||||
CD_PM_CLEAN="apt-get clean"
|
||||
CD_CMD_INSTALL="apt-get install --assume-yes"
|
||||
CD_CMD_QUERY="dpkg-query --show"
|
||||
CD_CMD_UPDATE="apt-get update"
|
||||
|
@ -213,7 +213,7 @@ Dir::Etc::SourceParts \"\";
|
|||
;;
|
||||
esac
|
||||
cd_split
|
||||
cd_echo "CD_CMD_CLEAN" \
|
||||
cd_echo "CD_PM_CLEAN" \
|
||||
"CD_CMD_INSTALL" "CD_CMD_QUERY" "CD_CMD_UPDATE" "CD_CMD_UPGRADE"
|
||||
cd_split
|
||||
cd_echo "CD_PKG_PKG" "CD_PM_CONF_PATH" "CD_PM_HTTPS_PATH"
|
||||
|
@ -504,7 +504,7 @@ cd_install_python () {
|
|||
|
||||
cd_clean_packages_cache () {
|
||||
cd_step "Clean packages cache"
|
||||
${CD_CMD_CLEAN} || exit
|
||||
${CD_PM_CLEAN} || exit
|
||||
}
|
||||
|
||||
cd_install_python_modules () {
|
||||
|
|
Loading…
Reference in a new issue