# HG changeset patch # User Pascal Bellard # Date 1345886265 -7200 # Node ID b7e579c4b595fd3e726bf3ba104d2ebfdeda596b # Parent e84d6bf204b26faaa1db8ade80621c871d36633c get-wfica: allow downloadId arg diff -r e84d6bf204b2 -r b7e579c4b595 get-wfica/stuff/get-wfica --- a/get-wfica/stuff/get-wfica Fri Aug 24 22:35:04 2012 +0200 +++ b/get-wfica/stuff/get-wfica Sat Aug 25 11:17:45 2012 +0200 @@ -2,7 +2,8 @@ PACKAGE="wfica" WEB_SITE="http://www.citrix.com" -PROD="downloadId=2323812&productId=1689163&ntref=downloadreceiver" +PROD="productId=1689163&ntref=downloadreceiver&downloadId=" +DLID="2323812" INSTALL_USB=yes ROOT="$1" @@ -24,10 +25,23 @@ CUR_DIR=$(pwd) mkdir -p $TMP_DIR && cd $TMP_DIR -URL="$WEB_SITE$(wget -O - "$WEB_SITE/English/ss/downloads/details.asp?$PROD" | \ - sed "/Download/h;/\.deb/!d;g;s/.*([\"']\([^\"']*\).*/\1/;q")" -USB_URL="$WEB_SITE$(wget -O - "$WEB_SITE/English/ss/downloads/details.asp?$PROD" | \ - sed "1,/\.deb/d;/Download/h;/\.deb/!d;g;s/.*([\"']\([^\"']*\).*/\1/;q")" +for i in $@ $DLID; do + [ -z "$(echo $i | sed 's/[0-9]//g')" ] && break +done +url="$WEB_SITE/English/ss/downloads/details.asp?$PROD$i" +filter="/Download/h;/\.deb/!d;g;s/.*([\"']\([^\"']*\).*/\1/;q" +URL="$(wget -O - "$url" | sed "$filter")" +if [ -n "$URL" ]; then + URL="$WEB_SITE$URL" + USB_URL="$WEB_SITE$(wget -O - "$url" | sed "1,/\.deb/d;$filter")" +else + cat 2>&1 < +EOT + exit 1 +fi wget -O $PACKAGE.deb "$URL" mkdir $PACKAGE diff -r e84d6bf204b2 -r b7e579c4b595 syslinux/receipt --- a/syslinux/receipt Fri Aug 24 22:35:04 2012 +0200 +++ b/syslinux/receipt Sat Aug 25 11:17:45 2012 +0200 @@ -56,7 +56,7 @@ break done done <