and -c influences the transferred data amount.
** GNU TLS backend works again.
+
+** Now --timestamping and --continue works well together.
\f
* Changes in Wget 1.12
+2010-07-11 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * http.c (http_loop): New variable `force_full_retrieve'. If the remote
+ file is newer that the local one then inhibit -c.
+ Reported by: Caleb Cushing <xenoterracide@gmail.com>.
+
2010-07-09 Giuseppe Scrivano <gscrivano@gnu.org>
* css-url.c (get_urls_css_file): Use `wget_read_file' instead of
struct_stat st;
bool send_head_first = true;
char *file_name;
+ bool force_full_retrieve = false;
/* Assert that no value for *LOCAL_FILE was passed. */
assert (local_file == NULL || *local_file == NULL);
*dt &= ~HEAD_ONLY;
/* Decide whether or not to restart. */
- if (opt.always_rest
+ if (force_full_retrieve)
+ hstat.restval = hstat.len;
+ else if (opt.always_rest
&& got_name
&& stat (hstat.local_file, &st) == 0
&& S_ISREG (st.st_mode))
}
}
else
- logputs (LOG_VERBOSE,
- _("Remote file is newer, retrieving.\n"));
+ {
+ force_full_retrieve = true;
+ logputs (LOG_VERBOSE,
+ _("Remote file is newer, retrieving.\n"));
+ }
logputs (LOG_VERBOSE, "\n");
}