wip/pkgconf
This commit is contained in:
parent
1b5ef403c7
commit
1652a1545b
1 changed files with 12 additions and 12 deletions
24
cd.sh
24
cd.sh
|
@ -14,9 +14,9 @@ rwx \
|
|||
cd_main () {
|
||||
cd_set_environment_variables
|
||||
cd_set_packages_repositories
|
||||
cd_set_packages_configuration
|
||||
#
|
||||
cd_list_working_directory
|
||||
cd_set_packages_configuration
|
||||
cd_set_https_verification_off
|
||||
cd_set_dns_resolving
|
||||
cd_update_packages_catalog
|
||||
|
@ -232,12 +232,6 @@ Dir::Etc::SourceParts \"\";
|
|||
esac
|
||||
cd_split
|
||||
cd_echo "CD_PYTHON_COMMAND" "CD_PYTHON_PACKAGE" "CD_PYTHON_PACKAGES"
|
||||
# TODO
|
||||
case "${CD_OS_ID}" in
|
||||
"${CD_OS_DEBIAN}")
|
||||
export DEBIAN_FRONTEND="noninteractive"
|
||||
;;
|
||||
esac
|
||||
# variables
|
||||
[ "${CD_CA_1}" ] && CD_CA=true
|
||||
# continuous integration platform
|
||||
|
@ -310,6 +304,16 @@ deb ${CD_OS_REPO}-security ${CD_OS_VERSION}-security main
|
|||
esac
|
||||
}
|
||||
|
||||
cd_set_packages_configuration () {
|
||||
cd_step "Set packages configuration"
|
||||
cd_write "${CD_PM_CONF_PATH}" "${CD_PM_CONF_TEXT}"
|
||||
case "${CD_OS_ID}" in
|
||||
"${CD_OS_DEBIAN}"|"${CD_OS_UBUNTU}")
|
||||
export DEBIAN_FRONTEND="noninteractive"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# agnostic steps
|
||||
|
||||
cd_list_working_directory () {
|
||||
|
@ -317,12 +321,8 @@ cd_list_working_directory () {
|
|||
cd_ls "."
|
||||
}
|
||||
|
||||
cd_set_packages_configuration () {
|
||||
cd_step "Set packages configuration"
|
||||
cd_write "${CD_PM_CONF_PATH}" "${CD_PM_CONF_TEXT}"
|
||||
}
|
||||
|
||||
cd_set_https_verification_off () {
|
||||
# TODO
|
||||
if [ "${CD_CA}" -o "${CD_OS_ID}" = "${CD_OS_DEBIAN}" ] ; then
|
||||
cd_step "Set HTTPS verification off"
|
||||
cd_mkdir "$(dirname "${CD_PM_HTTPS_PATH}")"
|
||||
|
|
Loading…
Reference in a new issue