allow libmariadbclient-dev to be installed

if mariadb is detected, install libmariadbclient-dev
otherwise, install libmysqlclient-dev

Change-Id: I9876e759deb0a235a5c98cc134caeae7593b6835
This commit is contained in:
Matthew Thode 2017-08-28 21:54:27 -05:00 committed by Jean-Philippe Evrard
parent e3eb50bb16
commit fb887e3c79

View File

@ -418,7 +418,9 @@ function build_venv {
# Install libmysqlclient-dev so that we are later able to build mysql-python
# Allow libmariadbclient-dev to be used instead
if ! apt --installed list | grep libmariadbclient-dev; then
if ! apt --installed list | grep libmariadbclient; then
apt-get -y install libmariadbclient-dev > /dev/null
else
apt-get -y install libmysqlclient-dev > /dev/null
fi