more pkgs in retry loop

This commit is contained in:
edoapra 2023-01-13 09:35:24 -08:00
parent d139c7a42f
commit c7a01d66b4
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0

View file

@ -143,18 +143,19 @@ if [[ "$os" == "Linux" ]]; then
sudo apt-get update
sudo apt-get -y install software-properties-common
sudo add-apt-repository universe && sudo apt-get update
pkg_extra=" "
if [[ "$FC" == "gfortran-11" ]] || [[ "$CC" == "gcc-11" ]]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
pkg_extra+=" gcc-11 gfortran-11 g++-11 "
fi
if [[ "$USE_LIBXC" == "-1" ]]; then
pkg_extra+=" libxc-dev "
fi
tries=0 ; until [ "$tries" -ge 10 ] ; do \
sudo apt-get -y install gfortran python3-dev make perl python3 rsync "$mpi_libdev" "$mpi_bin" \
sudo apt-get -y install gfortran python3-dev make perl python3 rsync "$mpi_libdev" "$mpi_bin" "$pkg_extra" \
&& break ;\
tries=$((tries+1)) ; echo attempt no. $tries ; sleep 30 ; done
if [[ "$FC" == "gfortran-11" ]] || [[ "$CC" == "gcc-11" ]]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -y install gcc-11 gfortran-11 g++-11
fi
fi
if [[ "$USE_LIBXC" == "-1" ]]; then
sudo apt-get -y install libxc-dev
fi
if [[ "$FC" == "ifort" ]] || [[ "$FC" == "ifx" ]]; then
sh ./"$base".sh -a -c -s --action remove --install-dir $IONEAPI_ROOT --eula accept