"Ian Abbott" <[EMAIL PROTECTED]> writes: >> Does it? For me this command retrieves only `index.html' and >> `a.html', and that's a bug. `-i list' makes no different. > > Well that's how it behaved for me
That's really strange, because the code that implements `-i' uses the same logic as the code that downloads command-line URLs in main(). When I tried to repeat the behavior and failed, I wrongly assumed it was an oversight on your part. > With your latest CVS updates (see [2]) the -i option now behaves > correctly - i.e. it downloads all three files. However, the command > which specified index.html and a.html on the command-line still > downloads a.html twice. Hmm. Let's make this a bit more specific by constructing a test case we can both share, to eliminate the possibility that we are doing something different. http://hrvoje.willfork.com/tst/ contains `index.html', `a.html', and `b.html' as you specified. My test is: $ ./wget -r -l1 -nv -e robots=off http://hrvoje.willfork.com/tst/index.html http://hrvoje.willfork.com/tst/a.html 13:00:50 URL:http://hrvoje.willfork.com/tst/index.html [18/18] -> "hrvoje.willfork.com/tst/index.html" [1] 13:00:50 URL:http://hrvoje.willfork.com/tst/a.html [18/18] -> "hrvoje.willfork.com/tst/a.html" [1] 13:00:50 URL:http://hrvoje.willfork.com/tst/b.html [6/6] -> "hrvoje.willfork.com/tst/b.html" [1] No duplicates, as far as I can tell. The same with -i: $ ./wget -r -l1 -nv -e robots=off -i - <<EOF http://hrvoje.willfork.com/tst/index.html http://hrvoje.willfork.com/tst/a.html EOF 13:02:20 URL:http://hrvoje.willfork.com/tst/index.html [18/18] -> "hrvoje.willfork.com/tst/index.html" [1] 13:02:20 URL:http://hrvoje.willfork.com/tst/a.html [18/18] -> "hrvoje.willfork.com/tst/a.html" [1] 13:02:20 URL:http://hrvoje.willfork.com/tst/b.html [6/6] -> "hrvoje.willfork.com/tst/b.html" [1] The result is unchanged. Next, I've processed your CVS entries through awk -F/ '{print $2, " ", $3}' and run this script on a separate checkout: $ while read file revision do echo "Updating $file to $revision." cvs update -r $revision $file done <<EOF ... your CVS/Entries processed with awk ... EOF Then I recompiled Wget and tried the two above test cases. With both of them I get the same (buggy) result: `index.html' and `a.html' downloaded, `b.html' skipped: 13:16:02 URL:http://hrvoje.willfork.com/tst/index.html [18/18] -> "hrvoje.willfork.com/tst/index.html" [1] 13:16:02 URL:http://hrvoje.willfork.com/tst/a.html [18/18] -> "hrvoje.willfork.com/tst/a.html" [1] So the question is: what are we doing different?
