2017-08-23 14:01:20 -04:00
|
|
|
# If new packages are installed by BootstrapArchCommon below, this version
|
|
|
|
|
# number must be increased.
|
|
|
|
|
BOOTSTRAP_ARCH_COMMON_VERSION=1
|
|
|
|
|
|
2015-12-02 01:47:38 -05:00
|
|
|
BootstrapArchCommon() {
|
|
|
|
|
# Tested with:
|
|
|
|
|
# - ArchLinux (x86_64)
|
|
|
|
|
#
|
|
|
|
|
# "python-virtualenv" is Python3, but "python2-virtualenv" provides
|
|
|
|
|
# only "virtualenv2" binary, not "virtualenv" necessary in
|
2016-02-05 18:31:41 -05:00
|
|
|
# ./tools/_venv_common.sh
|
2015-12-02 01:47:38 -05:00
|
|
|
|
|
|
|
|
deps="
|
|
|
|
|
python2
|
|
|
|
|
python-virtualenv
|
|
|
|
|
gcc
|
|
|
|
|
augeas
|
|
|
|
|
openssl
|
|
|
|
|
libffi
|
|
|
|
|
ca-certificates
|
|
|
|
|
pkg-config
|
|
|
|
|
"
|
|
|
|
|
|
2016-02-16 17:19:27 -05:00
|
|
|
# pacman -T exits with 127 if there are missing dependencies
|
2017-08-21 15:23:09 -04:00
|
|
|
missing=$(pacman -T $deps) || true
|
2015-12-02 01:47:38 -05:00
|
|
|
|
2016-04-22 13:01:32 -04:00
|
|
|
if [ "$ASSUME_YES" = 1 ]; then
|
|
|
|
|
noconfirm="--noconfirm"
|
|
|
|
|
fi
|
|
|
|
|
|
2015-12-02 01:47:38 -05:00
|
|
|
if [ "$missing" ]; then
|
2017-08-03 16:45:55 -04:00
|
|
|
if [ "$QUIET" = 1 ]; then
|
2017-08-21 15:23:09 -04:00
|
|
|
pacman -S --needed $missing $noconfirm > /dev/null
|
2017-01-20 12:40:36 -05:00
|
|
|
else
|
2017-08-21 15:23:09 -04:00
|
|
|
pacman -S --needed $missing $noconfirm
|
2017-01-20 12:40:36 -05:00
|
|
|
fi
|
2015-12-02 01:47:38 -05:00
|
|
|
fi
|
2015-12-02 02:01:22 -05:00
|
|
|
}
|