mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Josh's patch to remove robots.txt when appriopriate.
This commit is contained in:
parent
613c317785
commit
38b0f4ba27
@ -1,3 +1,8 @@
|
|||||||
|
2007-10-14 Joshua David Williams <yurimxpxman@gmail.com>
|
||||||
|
|
||||||
|
* recur.c (download_child_p): Remove robots.txt if
|
||||||
|
--delete-after or --spider is on.
|
||||||
|
|
||||||
2007-10-13 Micah Cowan <micah@cowan.name>
|
2007-10-13 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* Makefile.am: Make version.c depend on Wget dependencies (source
|
* Makefile.am: Make version.c depend on Wget dependencies (source
|
||||||
|
@ -570,6 +570,15 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
|
|||||||
if (res_retrieve_file (url, &rfile))
|
if (res_retrieve_file (url, &rfile))
|
||||||
{
|
{
|
||||||
specs = res_parse_from_file (rfile);
|
specs = res_parse_from_file (rfile);
|
||||||
|
|
||||||
|
/* Delete the robots.txt file if we chose to either delete the
|
||||||
|
files after downloading or we're just running a spider. */
|
||||||
|
if (opt.delete_after || opt.spider)
|
||||||
|
{
|
||||||
|
logprintf (LOG_VERBOSE, "Removing %s.\n", rfile);
|
||||||
|
unlink (rfile);
|
||||||
|
}
|
||||||
|
|
||||||
xfree (rfile);
|
xfree (rfile);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user