mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Set the timestamp even when -O is used.
This commit is contained in:
parent
bf69f45520
commit
62b876401e
@ -1,3 +1,10 @@
|
||||
2000-12-11 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* ftp.c (ftp_retrieve_list): Ditto.
|
||||
|
||||
* http.c (http_loop): Touch output_document if that is used for
|
||||
output.
|
||||
|
||||
2000-12-06 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* http.c: Include gen_sslfunc.h after including Wget's headers.
|
||||
|
@ -1365,13 +1365,13 @@ Already have correct symlink %s -> %s\n\n"),
|
||||
/* Set the time-stamp information to the local file. Symlinks
|
||||
are not to be stamped because it sets the stamp on the
|
||||
original. :( */
|
||||
if (!opt.dfp
|
||||
&& !(f->type == FT_SYMLINK && !opt.retr_symlinks)
|
||||
if (!(f->type == FT_SYMLINK && !opt.retr_symlinks)
|
||||
&& f->tstamp != -1
|
||||
&& dlthis
|
||||
&& file_exists_p (u->local))
|
||||
{
|
||||
touch (u->local, f->tstamp);
|
||||
const char *fl = opt.output_document ? opt.output_document : u->local;
|
||||
touch (fl, f->tstamp);
|
||||
}
|
||||
else if (f->tstamp == -1)
|
||||
logprintf (LOG_NOTQUIET, _("%s: corrupt time-stamp.\n"), u->local);
|
||||
|
@ -1526,15 +1526,15 @@ The sizes do not match (local %ld) -- retrieving.\n"), local_size);
|
||||
FREEHSTAT (hstat);
|
||||
continue;
|
||||
}
|
||||
if (!opt.dfp
|
||||
&& (tmr != (time_t) (-1))
|
||||
if ((tmr != (time_t) (-1))
|
||||
&& !opt.spider
|
||||
&& ((hstat.len == hstat.contlen) ||
|
||||
((hstat.res == 0) &&
|
||||
((hstat.contlen == -1) ||
|
||||
(hstat.len >= hstat.contlen && !opt.kill_longer)))))
|
||||
{
|
||||
touch (u->local, tmr);
|
||||
const char *fl = opt.output_document ? opt.output_document : u->local;
|
||||
touch (fl, tmr);
|
||||
}
|
||||
/* End of time-stamping section. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user