Hack Kampbjørn <[EMAIL PROTECTED]> writes:

> Harry Putnam wrote:

[...]

> 
> `-X LIST'
> `--exclude LIST'
> `exclude_directories = LIST'
>      `-X' option is exactly the reverse of `-I'--this is a list of
>      directories _excluded_ from the download.  E.g. if you do not want
>      Wget to download things from `/cgi-bin' directory, specify `-X
>      /cgi-bin' on the command line.
> 
>      The same as with `-A'/`-R', these two options can be combined to
>      get a better fine-tuning of downloading subdirectories.  E.g. if
>      you want to load all the files from `/pub' hierarchy except for
>      `/pub/worthless', specify `-I/pub -X/pub/worthless'.
> 
> Ah, it isn't that clearly said that it has to be an absolute path. But
> the exemples are all using one. (You're welcome to provide a better
> description for the info pages)
> 
> Making some test with wget version 1.6 shows that it works as described.
> Even -X securescan works just as well as -X /securescan. But -X jobs
> will not exclude /about/jobs/...
> 
> [hack@DUR0N2000 webs]$ wget -X securescan,i,css,press,jobs -r -l inf
> http://www
> .vigilante.com/
> 
I'll hold off writing a patch for info until I fully understand how 
this is supposed to work.

Thanks Hack, I'm trying to test this out now. I'd missed the `absolute
path' part.  Preliminary trys indicate a problem like this 
-X /absolute/path/alpha/,  Also excludes /absolute/path/alphaev6/

In a directory that looks like:
SRPMS
alpha
alphae6v
i386
i586
i686
images
noarch

If I wanted to exclude only alpha.  It seems one of these lines should
do so:
        
        `-X /absolute/path/alpha/'
or      `-X /absolute/path/alpha'        
should not exclude them both.

I realize I could force the alphaev6 with the -I operator, but is this
the intent? 

I've tested this repeatedly and think this behavior is repeatable.

my command line looks like:
 #  wget --mirror -nH --cut-dirs=3 -X /redhat/updates/7.0/alpha/\
> -P /mnt/hdc6/7.0up ftp://ftp.redhat.com/redhat/updates/7.0/\
> -a /var/log/wget-7.0up.log

That command line excludes both directories (alpha alphae6v). Probably
not the intent .. or is it.







Reply via email to