swap
This commit is contained in:
parent
ef83f1a828
commit
9b8470f7cb
1 changed files with 39 additions and 39 deletions
|
@ -976,6 +976,45 @@ spcd_f_pkg_git() {
|
|||
# │ f │ pm │ conf = configure │
|
||||
# ╰───┴────┴──────────────────╯
|
||||
|
||||
spcd_step__packages_set_configuration() {
|
||||
spcd_step "Set configuration"
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_DNF}")
|
||||
spcd_os_write "/etc/dnf/dnf.conf" "\
|
||||
[main]
|
||||
best=True
|
||||
clean_requirements_on_remove=True
|
||||
gpgcheck=1
|
||||
installonly_limit=3
|
||||
skip_if_unavailable=False
|
||||
"
|
||||
;;
|
||||
"${SPCD_PM_APK}") ;;
|
||||
"${SPCD_PM_PACMAN}") ;;
|
||||
"${SPCD_PM_APT}")
|
||||
spcd_os_write "/etc/apt/apt.conf.d/apt.conf" "\
|
||||
Acquire::Check-Valid-Until True;
|
||||
APT::Get::Show-Versions True;
|
||||
APT::Install-Recommends False;
|
||||
APT::Install-Suggests False;
|
||||
Dir::Etc::SourceParts \"\";
|
||||
"
|
||||
;;
|
||||
"${SPCD_PM_ZYPPER}") ;;
|
||||
*) ;;
|
||||
esac
|
||||
case "${SPCD_OS_ID}" in
|
||||
"${SPCD_OS_ARCH}")
|
||||
spcd_run pacman-key --init
|
||||
;;
|
||||
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
|
||||
export DEBIAN_FRONTEND="noninteractive"
|
||||
spcd_os_printenv DEBIAN_FRONTEND
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
}
|
||||
|
||||
spcd_step__packages_set_repositories() {
|
||||
spcd_step "Set repositories"
|
||||
local file
|
||||
|
@ -1118,45 +1157,6 @@ deb ${SPCD_URL_UBUNTU} ${SPCD_OS_VERSION}-security main universe
|
|||
esac
|
||||
}
|
||||
|
||||
spcd_step__packages_set_configuration() {
|
||||
spcd_step "Set configuration"
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_DNF}")
|
||||
spcd_os_write "/etc/dnf/dnf.conf" "\
|
||||
[main]
|
||||
best=True
|
||||
clean_requirements_on_remove=True
|
||||
gpgcheck=1
|
||||
installonly_limit=3
|
||||
skip_if_unavailable=False
|
||||
"
|
||||
;;
|
||||
"${SPCD_PM_APK}") ;;
|
||||
"${SPCD_PM_PACMAN}") ;;
|
||||
"${SPCD_PM_APT}")
|
||||
spcd_os_write "/etc/apt/apt.conf.d/apt.conf" "\
|
||||
Acquire::Check-Valid-Until True;
|
||||
APT::Get::Show-Versions True;
|
||||
APT::Install-Recommends False;
|
||||
APT::Install-Suggests False;
|
||||
Dir::Etc::SourceParts \"\";
|
||||
"
|
||||
;;
|
||||
"${SPCD_PM_ZYPPER}") ;;
|
||||
*) ;;
|
||||
esac
|
||||
case "${SPCD_OS_ID}" in
|
||||
"${SPCD_OS_ARCH}")
|
||||
spcd_run pacman-key --init
|
||||
;;
|
||||
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
|
||||
export DEBIAN_FRONTEND="noninteractive"
|
||||
spcd_os_printenv DEBIAN_FRONTEND
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
}
|
||||
|
||||
# ╭───┬────┬───────╮
|
||||
# │ f │ pm │ https │
|
||||
# ╰───┴────┴───────╯
|
||||
|
|
Loading…
Reference in a new issue