Repo update during pacman dependency installation

This eliminates the risk of a dependency not being installed or updated because of
unsynced repo state.
This commit is contained in:
Dimitrios Tatsis 2016-02-10 16:59:39 +02:00
parent a8e22475e6
commit dbb079cbf7
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ if [[ "$unamestr" == 'Linux' ]]; then
elif [ $(which pacman) ]; then
echo "installing pip"
sudo pacman -S --needed --noconfirm base-devel python2-pip python2-virtualenv
sudo pacman -Sy --needed --noconfirm base-devel python2-pip python2-virtualenv
PIP="pip2"
elif [ $(which yum) ]; then
sudo yum install -y python-pip python-devel gcc gcc-c++ python-virtualenv glib2-devel