wok-6.x rev 5754
get-opera: fix RELEASE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 03 12:50:47 2010 +0200 (2010-07-03) |
parents | c0a4a7364798 |
children | de9dd0fa3388 |
files | get-opera/stuff/get-opera |
line diff
1.1 --- a/get-opera/stuff/get-opera Fri Jul 02 23:42:13 2010 +0200 1.2 +++ b/get-opera/stuff/get-opera Sat Jul 03 12:50:47 2010 +0200 1.3 @@ -28,7 +28,7 @@ 1.4 # Download rpm 1.5 for RELEASE in $(get_releases); do 1.6 [ -n "$RELEASE" ] || continue 1.7 - FILE=$(wget -O - "$URL$RELEASE/" 2> /dev/null | grep i386.rpm | sed 's/.*href="\(.*\)">.*/\1/') 1.8 + FILE=$(wget -O - "$URL$RELEASE/" 2> /dev/null | grep i386.rpm | sed 's/.*href="\(.*\)">.*/\1/' | head -n 1) 1.9 [ -n "$FILE" ] || continue 1.10 wget $URL$RELEASE/$FILE 1.11 [ -s $FILE ] && break 1.12 @@ -41,6 +41,7 @@ 1.13 exit 1 1.14 fi 1.15 1.16 +RELEASE=$(rpm -qip $FILE | awk '/^Release/ { print $3 }') 1.17 VERSION=$(rpm -qip $FILE | awk '/^Version/ { print $3 }')-$RELEASE 1.18 1.19 mkdir -p opera-$VERSION/fs