Add --no-update to all add-apt-repository invocations

This commit is contained in:
Saverio Miroddi 2021-04-29 00:00:26 +02:00
parent f2be14369f
commit 584946c3d0

View File

@ -834,7 +834,7 @@ function ask_dataset_create_options {
function install_host_zfs_packages { function install_host_zfs_packages {
if [[ $v_use_ppa == "1" ]]; then if [[ $v_use_ppa == "1" ]]; then
if [[ ${ZFS_SKIP_LIVE_ZFS_MODULE_INSTALL:-} != "1" ]]; then if [[ ${ZFS_SKIP_LIVE_ZFS_MODULE_INSTALL:-} != "1" ]]; then
add-apt-repository --yes "$c_ppa" add-apt-repository --yes --no-update "$c_ppa"
apt update apt update
# Libelf-dev allows `CONFIG_STACK_VALIDATION` to be set - it's optional, but good to have. # Libelf-dev allows `CONFIG_STACK_VALIDATION` to be set - it's optional, but good to have.
@ -1276,7 +1276,7 @@ function install_jail_base_packages {
# #
function install_jail_zfs_packages { function install_jail_zfs_packages {
if [[ $v_use_ppa == "1" ]]; then if [[ $v_use_ppa == "1" ]]; then
chroot_execute "add-apt-repository --yes $c_ppa" chroot_execute "add-apt-repository --yes --no-update $c_ppa"
chroot_execute "apt update" chroot_execute "apt update"