bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] mirroring one sourceforge package?


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] mirroring one sourceforge package?
Date: Thu, 31 Mar 2011 01:42:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Micah Cowan <address@hidden> writes:

> So it looks like wget is correctly blocking the http URL, but
> incorrectly permitting the https URL.

We check if the two schemes are similar but at the same time we require
the port to be identical.

I have relaxed this condition, now the two ports must be identical only
in the case the same protocol is used.

I have pushed this patch:

=== modified file 'src/recur.c'
--- src/recur.c 2011-01-01 12:19:37 +0000
+++ src/recur.c 2011-03-30 23:36:05 +0000
@@ -563,7 +563,8 @@
   if (opt.no_parent
       && schemes_are_similar_p (u->scheme, start_url_parsed->scheme)
       && 0 == strcasecmp (u->host, start_url_parsed->host)
-      && u->port == start_url_parsed->port
+      && (u->scheme != start_url_parsed->scheme
+          || u->port == start_url_parsed->port)
       && !(opt.page_requisites && upos->link_inline_p))
     {
       if (!subdir_p (start_url_parsed->dir, u->dir))

Applying it and launching wget using the same arguments used by Karl, I
get:

$ find sourceforge.net/ -maxdepth 3
sourceforge.net/
sourceforge.net/projects
sourceforge.net/projects/biblatex-biber
sourceforge.net/projects/biblatex-biber/files
sourceforge.net/robots.txt

Just in time before the release :-)

Cheers,
Giuseppe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]