diff -ur wget-1.6/src/ftp.c wget-1.6_aym1/src/ftp.c --- wget-1.6/src/ftp.c Sun Dec 31 04:47:33 2000 +++ wget-1.6_aym1/src/ftp.c Mon Feb 26 14:45:15 2001 @@ -1162,7 +1162,8 @@ /* Else, get it from the file. */ local_size = st.st_size; tml = st.st_mtime; - if (local_size == f->size && tml >= f->tstamp) + if ((local_size == f->size || opt.ignore_size) && + tml >= f->tstamp) { logprintf (LOG_VERBOSE, _("\ Server file no newer than local file `%s' -- not retrieving.\n\n"), u->local); diff -ur wget-1.6/src/http.c wget-1.6_aym1/src/http.c --- wget-1.6/src/http.c Sun Dec 31 04:47:58 2000 +++ wget-1.6_aym1/src/http.c Mon Feb 26 14:44:32 2001 @@ -1160,7 +1160,8 @@ it will not be retrieved. Otherwise, the normal download procedure is resumed. */ if (tml >= tmr && - (hstat.contlen == -1 || local_size == hstat.contlen)) + (hstat.contlen == -1 || + (local_size == hstat.contlen || opt.ignore_size))) { logprintf (LOG_VERBOSE, _("\ Server file no newer than local file `%s' -- not retrieving.\n\n"), diff -ur wget-1.6/src/init.c wget-1.6_aym1/src/init.c --- wget-1.6/src/init.c Sun Dec 17 20:28:19 2000 +++ wget-1.6_aym1/src/init.c Mon Feb 26 14:39:48 2001 @@ -126,6 +126,7 @@ { "httpproxy", &opt.http_proxy, cmd_string }, { "httpuser", &opt.http_user, cmd_string }, { "ignorelength", &opt.ignore_length, cmd_boolean }, + { "ignoresize", &opt.ignore_size, cmd_boolean }, { "ignoretags", &opt.ignore_tags, cmd_vector }, { "includedirectories", &opt.includes, cmd_directory_vector }, { "input", &opt.input_filename, cmd_string }, diff -ur wget-1.6/src/main.c wget-1.6_aym1/src/main.c --- wget-1.6/src/main.c Sun Dec 31 05:05:18 2000 +++ wget-1.6_aym1/src/main.c Mon Feb 26 14:36:19 2001 @@ -145,6 +145,7 @@ -c, --continue restart getting an existing file.\n\ --dot-style=STYLE set retrieval display style.\n\ -N, --timestamping don\'t retrieve files if older than local.\n\ + --ignore-size ignore size difference between local and remote.\n\ -S, --server-response print server response.\n\ --spider don\'t download anything.\n\ -T, --timeout=SECONDS set the read timeout to SECONDS.\n\ @@ -229,6 +230,7 @@ { "help", no_argument, NULL, 'h' }, { "html-extension", no_argument, NULL, 'E' }, { "ignore-length", no_argument, NULL, 10 }, + { "ignore-size", no_argument, NULL, 28 }, { "mirror", no_argument, NULL, 'm' }, { "no-clobber", no_argument, NULL, 13 }, { "no-directories", no_argument, NULL, 19 }, @@ -371,6 +373,9 @@ case 27: setval ("bindaddress", optarg); break; + case 28: + setval ("ignoresize", "on"); + break; case 'b': setval ("background", "on"); break; diff -ur wget-1.6/src/options.h wget-1.6_aym1/src/options.h --- wget-1.6/src/options.h Mon Dec 11 01:53:11 2000 +++ wget-1.6_aym1/src/options.h Mon Feb 26 14:42:04 2001 @@ -122,6 +122,9 @@ int timestamping; /* Whether to use time-stamping. */ + int ignore_size; /* Ignore size to determine whether + file should be retrieved again. */ + int backup_converted; /* Do we save pre-converted files as *.orig? */ int backups; /* Are numeric backups made? */ diff -ur wget-1.6/src/version.c wget-1.6_aym1/src/version.c --- wget-1.6/src/version.c Sun Dec 31 04:54:05 2000 +++ wget-1.6_aym1/src/version.c Mon Feb 26 14:42:50 2001 @@ -1 +1 @@ -char *version_string = "1.6"; +char *version_string = "1.6_aym1";