Fixed pip2 reinstall in arch

On pacman the --needed directive prevents from reinstalling base-devel and python2-pip everytime the install script is run (most users will already have this packages and don't want to reinstall them :P)
Also added the --noconfirm to pacman, and the -y to yum
This commit is contained in:
xtrm0 2016-01-31 00:40:48 +00:00
parent bb2a4c1bd0
commit 6a449e90d0
1 changed files with 2 additions and 2 deletions

View File

@ -35,10 +35,10 @@ if [[ "$unamestr" == 'Linux' ]]; then
sudo -H $PIP install virtualenv
elif [ $(which pacman) ]; then
echo "installing pip"
sudo pacman -S base-devel python2-pip
sudo pacman -S --needed --noconfirm base-devel python2-pip
PIP="pip2"
elif [ $(which yum) ]; then
sudo yum install python-pip python-devel gcc gcc-c++ python-virtualenv glib2-devel
sudo yum install -y python-pip python-devel gcc gcc-c++ python-virtualenv glib2-devel
fi
if [ $(tracers/qemu/qira-i386 > /dev/null; echo $?) == 1 ]; then