Release Candidates :: DSL v4.4RC2



Quote (mikshaw @ June 02 2008,22:34)
Quote
download only...only download the info file...

Code Sample
   os.execute(terminal..[[ -title "Downloading ]]..
   myfile.title..[[" -e sh -c "unset DISPLAY && cd ]]..dirname..
   [[ &&  wget ]]..mirror..myfile.location..[[/]]..myfile.title..
   [[{.info,.md5.txt,}]]..[[ && md5sum -c ]]..myfile.title..
   [[.md5.txt && echo Press \"Enter\" to continue && read"]])

That should essentially be wget http://mymirror/extension{.info,.md5.txt,}
Which *should* execute three instances of wget.  It worked that way for me anyway.  I typically use gnu wget, which allows for multiple files, but I tested this with busybox from DSL 4.3

"wget http://mymirror/extension{.info,.md5.txt,}" (brace expansion, iirc) should not launch multiple wgets. It should be the equivalent of "wget http://mymirror/extension.info http://mymirror/extension.md5.txt http://mymirror/extension".

I've been using {,} expansion quite frequently in recent times, so I'm just saying.

It needs to pass the "base norestore" test, which it does not.
We cannot require gnu-utils or coreutils be loaded for base applications.

Quote
(brace expansion, iirc) should not launch multiple wgets.
Quite right, my mistake.  Well, that's a bummer. I'm certain I did have it working with busybox at some point, though.

That's going to make for one long execute string if it needs to be split up into three separate wget commands. Open to any better suggestions, as always.

Code Sample
   os.execute(terminal..[[ -title "Downloading ]]..
  myfile.title..[[" -e sh -c "unset DISPLAY && cd ]]..dirname..
  [[ &&  wget ]]..mirror..myfile.location..[[/]]..myfile.title..[[.md5sum.txt]]..
  [[ &&  wget ]]..mirror..myfile.location..[[/]]..myfile.title..[[.info]]..
  [[ &&  wget ]]..mirror..myfile.location..[[/]]..myfile.title..
  [[ && md5sum -c ]]..myfile.title..
  [[.md5.txt && echo Press \"Enter\" to continue && read"]])

to mikshaw, roberts:

i'm was previously on 4.2.4.
when trying this RC (dirty install), lightygui.lua couldn't get started, probably because murgalua directory isn't there anymore.
i know fltk was added to lua, is this anything to do with murgalua?
is lua now actually murgalua?

i tried changing to #!/bin/lua but Fl libs couldn't be found.

#!/bin/lua
require("fltk")

The fltk is now separate and uses the more standard use of the require.

Next Page...
original here.