+2010-01-09 Micah Cowan <micah@cowan.name>
+
+ * wget.texi (Download Options): Documented
+ --no-use-server-timestamps.
+
2009-09-04 Micah Cowan <micah@cowan.name>
* wget.texi (Time-Stamping): "older" -> "not newer".
@itemx --timestamping
Turn on time-stamping. @xref{Time-Stamping}, for details.
+@item --no-use-server-timestamps
+Don't set the local file's timestamp by the one on the server.
+
+By default, when a file is downloaded, it's timestamps are set to
+match those from the remote file. This allows the use of
+@samp{--timestamping} on subsequent invocations of wget. However, it
+is sometimes useful to base the local file's timestamp on when it was
+actually downloaded; for that purpose, the
+@samp{--no-use-server-timestamps} option has been provided.
+
@cindex server response, print
@item -S
@itemx --server-response
@item timestamping = on/off
Turn timestamping on/off. The same as @samp{-N} (@pxref{Time-Stamping}).
+@item use_server_timestamps = on/off
+If set to @samp{off}, Wget won't set the local file's timestamp by the
+one on the server (same as @samp{--no-use-server-timestamps}).
+
@item tries = @var{n}
Set number of retries per @sc{url}---the same as @samp{-t @var{n}}.
+2010-01-09 Micah Cowan <micah@cowan.name>
+
+ * init.c, main.c, http.c, ftp.c, options.h: Renamed
+ --no-match-server-timestamps to --no-use-server-timestamps, and
+ add it to print_help.
+
2010-01-09 David Holman <holman.david@gmail.com> (tiny change)
- * init.c, main.c, http.c, ftp.c: Added support for
+ * init.c, main.c, http.c, ftp.c, options.h: Added support for
--no-match-server-timestamps.
2009-12-03 Peter Rosin <peda@lysator.liu.se>
original. :( */
if (actual_target != NULL)
{
- if (opt.matchservertimestamps
+ if (opt.useservertimestamps
&& !(f->type == FT_SYMLINK && !opt.retr_symlinks)
&& f->tstamp != -1
&& dlthis
} /* send_head_first */
} /* !got_head */
- if (opt.matchservertimestamps
+ if (opt.useservertimestamps
&& (tmr != (time_t) (-1))
&& ((hstat.len == hstat.contlen) ||
((hstat.res == 0) && (hstat.contlen == -1))))
{ "localencoding", &opt.locale, cmd_string },
{ "logfile", &opt.lfilename, cmd_file },
{ "login", &opt.ftp_user, cmd_string },/* deprecated*/
- { "matchservertimestamps", &opt.matchservertimestamps, cmd_boolean },
{ "maxredirect", &opt.max_redirect, cmd_number },
{ "mirror", NULL, cmd_spec_mirror },
{ "netrc", &opt.netrc, cmd_boolean },
{ "useproxy", &opt.use_proxy, cmd_boolean },
{ "user", &opt.user, cmd_string },
{ "useragent", NULL, cmd_spec_useragent },
+ { "useservertimestamps", &opt.useservertimestamps, cmd_boolean },
{ "verbose", NULL, cmd_spec_verbose },
{ "wait", &opt.wait, cmd_time },
{ "waitretry", &opt.waitretry, cmd_time },
opt.locale = NULL;
opt.encoding_remote = NULL;
- opt.matchservertimestamps = true;
+ opt.useservertimestamps = true;
}
\f
/* Return the user's home directory (strdup-ed), or NULL if none is
{ "limit-rate", 0, OPT_VALUE, "limitrate", -1 },
{ "load-cookies", 0, OPT_VALUE, "loadcookies", -1 },
{ "local-encoding", 0, OPT_VALUE, "localencoding", -1 },
- { "match-server-timestamps", 0, OPT_BOOLEAN, "matchservertimestamps", -1 },
{ "max-redirect", 0, OPT_VALUE, "maxredirect", -1 },
{ "mirror", 'm', OPT_BOOLEAN, "mirror", -1 },
{ "no", 'n', OPT__NO, NULL, required_argument },
{ "timeout", 'T', OPT_VALUE, "timeout", -1 },
{ "timestamping", 'N', OPT_BOOLEAN, "timestamping", -1 },
{ "tries", 't', OPT_VALUE, "tries", -1 },
+ { "use-server-timestamps", 0, OPT_BOOLEAN, "useservertimestamps", -1 },
{ "user", 0, OPT_VALUE, "user", -1 },
{ "user-agent", 'U', OPT_VALUE, "useragent", -1 },
{ "verbose", 'v', OPT_BOOLEAN, "verbose", -1 },
-N, --timestamping don't re-retrieve files unless newer than\n\
local.\n"),
N_("\
+ --no-use-server-timestamps don't set the local file's timestamp by\n\
+ the one on the server.\n"),
+ N_("\
-S, --server-response print server response.\n"),
N_("\
--spider don't download anything.\n"),
int ftp_stmlf; /* Force Stream_LF format for binary FTP. */
#endif /* def __VMS */
- bool matchservertimestamps; /* Update downloaded files' timestamps to
+ bool useservertimestamps; /* Update downloaded files' timestamps to
match those on server? */
};