Wed 26 Nov 2008 05:40:59 PM UTC, original submission:
I'm running the following wget, pulled from Hg today and compiled on Ubuntu Intrepid:
$ ../wget/src/wget --version
GNU Wget 1.12-devel (bb58048a2b58)
Options : +digest +ipv6 +nls +ntlm +opie +md5/openssl -gnutls
+openssl +gettext
Wgetrc : /usr/local/etc/wgetrc (system)
Locale : /usr/local/share/locale
Compile : gcc -DHAVE_CONFIG_H
-DSYSTEM_WGETRC="/usr/local/etc/wgetrc"
-DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -g -O2
Link : gcc -g -O2 -lssl -lcrypto -ldl -lrt ftp-opie.o openssl.o
http-ntlm.o gen-md5.o ../lib/libgnu.a
I execute the following command:
../wget/src/wget -c 'http://upload.wikimedia.org/wikipedia/commons/thumb/9/97/The_Earth_seen_from_Apollo_17.jpg/599px-The_Earth_seen_from_Apollo_17.jpg'
It downloads the file in question. When I execute it again, however, it downloads the file once more. The man page states:
"Also beginning with Wget 1.7, if you use -c on a file which is of equal size as the one on the server, Wget will refuse to download the file and print an explanatory message."
The file is of the same size, but wget still redownloads it, contrary to the spec. I'm marking this as a regression because I assume that the behavior was at one point as specified in the man page. (I believe it worked like this in the version shipped with Ubuntu Hardy, which was based off of the venerable 1.10.2.)
Additionally, the progress bar is corrupted; it only goes up to 50%, though it's transferring the correct number of bytes. I don't know if this is really an issue, since it shouldn't be downloading in the first place.
|