Skip to content

Commit

Permalink
avoid running update_sources multiple times for faster execution
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Aug 18, 2023
1 parent eb00cc7 commit d7611c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/bin/dist-installer-cli
Expand Up @@ -940,7 +940,6 @@ install_pkg(){
return 0
fi

update_sources
log notice "Installing package(s): '${pkg_not_installed}'"
# shellcheck disable=SC2086
root_cmd ${pkg_mngr_install} ${pkg_not_installed} ||
Expand Down Expand Up @@ -2126,6 +2125,7 @@ $df_output"
pre_check(){
get_os
get_system_stat
update_sources
get_host_pkgs
get_independent_host_pkgs
nested_virtualization_test
Expand Down

0 comments on commit d7611c0

Please sign in to comment.