The attached patch fixes the bug for the reported wget options. Any
other wget options to override ?
diff -ruN orig/flashplugin-nonfree-7.0.61/update-flashplugin.sh
flashplugin-nonfree-7.0.61/update-flashplugin.sh
--- orig/flashplugin-nonfree-7.0.61/update-flashplugin.sh 2006-03-08
00:51:19.000000000 +0100
+++ flashplugin-nonfree-7.0.61/update-flashplugin.sh 2006-03-11
10:34:15.000000000 +0100
@@ -76,23 +76,28 @@
else # no local file
+ # setting wget options
+ :> wgetrc
+ echo "noclobber = off" >> wgetrc
+ echo "dir_prefix = ." >> wgetrc
+ echo "dirstruct = off" >> wgetrc
+ echo "verbose = off" >> wgetrc
+
# checking the click path to the license and to the
file to download
if [ $FAIL = "false" ]; then
- wget -O homepage.html
http://macromedia.mplug.org/ 2> /dev/null || FAIL="true"
+ WGETRC=wgetrc wget -q -O homepage.html
http://macromedia.mplug.org/ || FAIL="true"
fi
if [ $FAIL = "false" ]; then
MIRROR_UH="ok"
- wget -O site_uh.html
http://macromedia.mplug.org/site_uh.html 2> /dev/null || MIRROR_UH="nok"
+ WGETRC=wgetrc wget -q -O site_uh.html
http://macromedia.mplug.org/site_uh.html || MIRROR_UH="nok"
grep
'"http://macromedia.mplug.org/site_uh.html"' homepage.html > /dev/null 2>&1 ||
MIRROR_UH="nok"
grep
'"http://www.macromedia.com/shockwave/download/license/desktop/"' site_uh.html
> /dev/null 2>&1 || MIRROR_UH="nok"
grep
'"http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_7_linux.tar.gz"'
site_uh.html > /dev/null 2>&1 || MIRROR_UH="nok"
MIRROR_RI="ok"
- wget -O site_ri.html
http://macromedia.rediris.es/site_ri.html 2> /dev/null || MIRROR_RI="nok"
+ WGETRC=wgetrc wget -q -O site_ri.html
http://macromedia.rediris.es/site_ri.html || MIRROR_RI="nok"
grep
'"http://macromedia.rediris.es/site_ri.html"' homepage.html > /dev/null 2>&1 ||
MIRROR_RI="nok"
grep
'"http://www.macromedia.com/shockwave/download/license/desktop/"' site_ri.html
> /dev/null 2>&1 || MIRROR_RI="nok"
grep
'"http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_7_linux.tar.gz"'
site_ri.html > /dev/null 2>&1 || MIRROR_RI="nok"
- echo "MIRROR_UH = $MIRROR_UH"
- echo "MIRROR_RI = $MIRROR_RI"
if [ $MIRROR_UH = "nok" ] && [ $MIRROR_RI =
"nok" ]; then
FAIL="true"
fi
@@ -100,12 +105,12 @@
# downloading the license
if [ $FAIL = "false" ]; then
- wget -O "Macromedia - End User License
Agreement.html" http://www.macromedia.com/shockwave/download/license/desktop/
2> /dev/null || FAIL="true"
+ WGETRC=wgetrc wget -q -O "Macromedia - End User
License Agreement.html"
http://www.macromedia.com/shockwave/download/license/desktop/ || FAIL="true"
fi
# downloading the plugin
if [ $FAIL = "false" ]; then
- wget
http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_7_linux.tar.gz
2> /dev/null || FAIL="true"
+ WGETRC=wgetrc wget -q
http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_7_linux.tar.gz
|| FAIL="true"
fi
if [ $FAIL = "false" ]; then
echo "b063b512076d4c88a56cb7521e6b5409
install_flash_player_7_linux.tar.gz"| md5sum --check > /dev/null 2>&1 ||
FAIL="true"