"James Barlow" <[EMAIL PROTECTED]> writes:

> --13:40:38--  http://-o/
>            => `index.html'
> Resolving -o... failed: Host not found.

That is doubly peculiar.  First, the script uses "-O", not "-o".
Second, "-o" should be processed as an option.

I am strongly inclined to rewrite the script in Perl, which will make
it easier to detect errors and to support other languages.

It will also be portable between Unix and Windows.  Perl's LWP module
provides an excellent interface for fetching URLs, and it is already
bundled with ActiveState Perl.

Here is the basic idea.

We will have lots of lines like this:

  $dl->{'enu'}->{'updates/ie6sp1/vbs56nenu.exe'}
      = 
'http://download.microsoft.com/download/IE60/Patch/Q318089/NT5XP/EN-US/vbs56nen.exe';

Which allows other languages to play games like this:

  $dl->{'eng'}->{'updates/ie6sp1/vbs56neng.exe'}
    = $dl->{'updates/ie6sp1/vbs56nenu.exe'};

...which should be useful for cases where multiple languages are
supported by a single file.

We can have command-line options to select which langauge(s) to
download:

  prepare.pl --lang enu,rus,nld

Also, we can generate a warning for any "unexpected" files; maybe even
a switch to let the script remove them.  This should help keep the
install share clean as updates come and go.

I am hoping to find time to code up a prototype this weekend.

 - Pat


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to