mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 03:47:22 +00:00
Merge pull request #331 from yehudasa/wip-which
bootstrap: different packages for 'which'
This commit is contained in:
commit
92f056532b
1 changed files with 2 additions and 3 deletions
|
@ -3,9 +3,8 @@ set -e
|
||||||
|
|
||||||
virtualenv="virtualenv"
|
virtualenv="virtualenv"
|
||||||
declare -a packages
|
declare -a packages
|
||||||
packages=(which)
|
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
packages+=(python-pip python-virtualenv python-dev libevent-dev libffi-dev libxml2-dev libxslt-dev zlib1g-dev)
|
packages=(debianutils python-pip python-virtualenv python-dev libevent-dev libffi-dev libxml2-dev libxslt-dev zlib1g-dev)
|
||||||
for package in ${packages[@]}; do
|
for package in ${packages[@]}; do
|
||||||
if [ "$(dpkg --status -- $package 2>/dev/null|sed -n 's/^Status: //p')" != "install ok installed" ]; then
|
if [ "$(dpkg --status -- $package 2>/dev/null|sed -n 's/^Status: //p')" != "install ok installed" ]; then
|
||||||
# add a space after old values
|
# add a space after old values
|
||||||
|
@ -17,7 +16,7 @@ if [ -f /etc/debian_version ]; then
|
||||||
sudo apt-get -y install $missing
|
sudo apt-get -y install $missing
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
packages+=(libevent-devel libffi-devel libxml2-devel libxslt-devel zlib-devel)
|
packages=(which libevent-devel libffi-devel libxml2-devel libxslt-devel zlib-devel)
|
||||||
if [ -f /etc/fedora-release ]; then
|
if [ -f /etc/fedora-release ]; then
|
||||||
packages+=(python2-pip python2-virtualenv python2-devel)
|
packages+=(python2-pip python2-virtualenv python2-devel)
|
||||||
elif [ -f /etc/redhat-release ]; then
|
elif [ -f /etc/redhat-release ]; then
|
||||||
|
|
Loading…
Reference in a new issue