wok-6.x rev 3896
get-google-chrome: do not create empty packages if /usr/bin/ar not exist
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Fri Aug 14 13:21:54 2009 +0000 (2009-08-14) |
parents | 88dcace026c6 |
children | d09310ff02e5 |
files | get-google-chrome/stuff/get-google-chrome |
line diff
1.1 --- a/get-google-chrome/stuff/get-google-chrome Fri Aug 14 13:17:20 2009 +0000 1.2 +++ b/get-google-chrome/stuff/get-google-chrome Fri Aug 14 13:21:54 2009 +0000 1.3 @@ -34,6 +34,17 @@ 1.4 exit 1 1.5 fi 1.6 1.7 +# Install binutils(ar) pkg 1.8 +if [ ! -d /var/lib/tazpkg/installed/binutils ]; then 1.9 + tazpkg get-install binutils 1.10 +fi 1.11 +if [ ! -f /usr/bin/ar ]; then 1.12 + cd $CUR_DIR 1.13 + rm -rf $TEMP_DIR 1.14 + echo "Could not extract $DEBPKG. Exiting." 1.15 + exit 1 1.16 +fi 1.17 + 1.18 ar x $DEBPKG control.tar.gz data.tar.lzma && lzma d data.tar.lzma -so | tar xf - 1.19 tar xzf control.tar.gz ./control 1.20 VERSION=`sed -n 's/Version:\ *//p' control`