sudo apt-get update before install new packages

This commit is contained in:
James Chen 2013-07-05 13:45:37 +08:00
parent 12bc534475
commit 9d2152b513
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ if [ "$GEN_JSB"x = "YES"x ]; then
install_android_ndk install_android_ndk
install_llvm install_llvm
elif [ "$PLATFORM"x = "linux"x ]; then elif [ "$PLATFORM"x = "linux"x ]; then
sudo apt-get update
bash $COCOS2DX_ROOT/install-deps-linux.sh bash $COCOS2DX_ROOT/install-deps-linux.sh
elif [ "$PLATFORM"x = "nacl"x ]; then elif [ "$PLATFORM"x = "nacl"x ]; then
install_nacl_sdk install_nacl_sdk