2017-08-23 14:01:20 -04:00
|
|
|
# If new packages are installed by BootstrapMageiaCommon below, this version
|
|
|
|
|
# number must be increased.
|
|
|
|
|
BOOTSTRAP_MAGEIA_COMMON_VERSION=1
|
|
|
|
|
|
2016-06-07 19:33:04 -04:00
|
|
|
BootstrapMageiaCommon() {
|
2017-01-23 20:55:59 -05:00
|
|
|
if [ "$QUIET" = 1 ]; then
|
2017-01-20 12:40:36 -05:00
|
|
|
QUIET_FLAG='--quiet'
|
|
|
|
|
fi
|
|
|
|
|
|
2017-08-21 15:23:09 -04:00
|
|
|
if ! urpmi --force $QUIET_FLAG \
|
2017-01-19 14:34:10 -05:00
|
|
|
python \
|
|
|
|
|
libpython-devel \
|
|
|
|
|
python-virtualenv
|
2016-06-07 19:33:04 -04:00
|
|
|
then
|
2017-04-19 12:11:38 -04:00
|
|
|
error "Could not install Python dependencies. Aborting bootstrap!"
|
2016-06-07 19:33:04 -04:00
|
|
|
exit 1
|
2017-01-19 14:34:10 -05:00
|
|
|
fi
|
2015-12-04 10:10:43 -05:00
|
|
|
|
2017-08-21 15:23:09 -04:00
|
|
|
if ! urpmi --force $QUIET_FLAG \
|
2017-01-19 14:34:10 -05:00
|
|
|
git \
|
|
|
|
|
gcc \
|
|
|
|
|
python-augeas \
|
|
|
|
|
libopenssl-devel \
|
|
|
|
|
libffi-devel \
|
|
|
|
|
rootcerts
|
2016-06-07 19:33:04 -04:00
|
|
|
then
|
2017-04-19 12:11:38 -04:00
|
|
|
error "Could not install additional dependencies. Aborting bootstrap!"
|
2017-01-19 14:34:10 -05:00
|
|
|
exit 1
|
2016-06-07 19:33:04 -04:00
|
|
|
fi
|
|
|
|
|
}
|