# HG changeset patch # User Pascal Bellard # Date 1352463188 -3600 # Node ID 4f73469d334e5a084242fcbc150176ec351e532a # Parent e2fcb326c3a5bc6050c28138de5c449aa8c1502b Up get-flash-plugin (1.4) diff -r e2fcb326c3a5 -r 4f73469d334e get-flash-plugin/receipt --- a/get-flash-plugin/receipt Thu Nov 08 16:52:28 2012 +0000 +++ b/get-flash-plugin/receipt Fri Nov 09 13:13:08 2012 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="get-flash-plugin" -VERSION="1.3" +VERSION="1.4" CATEGORY="non-free" SHORT_DESC="Get Adobe Flash Player." MAINTAINER="pascal.bellard@slitaz.org" diff -r e2fcb326c3a5 -r 4f73469d334e get-flash-plugin/stuff/get-flash-plugin --- a/get-flash-plugin/stuff/get-flash-plugin Thu Nov 08 16:52:28 2012 +0000 +++ b/get-flash-plugin/stuff/get-flash-plugin Fri Nov 09 13:13:08 2012 +0100 @@ -21,18 +21,21 @@ [ -d $INSTALLED/$PACKAGE ] && exit 1 fi +VERSION=$(echo " $@ " | sed '/ [0-9]* /!d;s/.* \([0-9]*\) .*/\1/') +[ -n "$VERSION" ] && [ $VERSION -lt 100 ] && VERSION=${VERSION}0 + URL= -for i in $(seq 112 999); do +for i in $(seq 111 999); do n="$(busybox wget -O - "http://get.adobe.com/fr/flashplayer/completion/?installer=Flash_Player_${i:0:2}.${i:2:1}_for_other_Linux_(.tar.gz)_32-bit" | \ sed "/gz/!d;s/.* '//;s/'.*//")" - [ -n "$n" ] && URL="$n" && continue - break + [ -n "$n" ] && URL="$n" && [ "$i" != "${VERSION/./}" ] && continue + [ -n "$URL" ] && break done [ -z "$URL" ] && for i in $(seq 11 99); do n="$(busybox wget -O - "http://get.adobe.com/fr/flashplayer/completion/?installer=Flash_Player_${i}_for_other_Linux_(.tar.gz)_32-bit" | \ sed "/gz/!d;s/.* '//;s/'.*//")" - [ -n "$n" ] && URL="$n" && continue - break + [ -n "$n" ] && URL="$n" && [ "$i" != "${VERSION:0:2}" ] && continue + [ -n "$URL" ] && break done if [ -z "$URL" ]; then