Programming and Scripting :: MyDSL info parser



Code Sample
for s in string.gmatch(data,"(Location:.-\n)\n") do

This returns 982 packages.

Code Sample
bunzip2 -c mydslinfo.bz2|grep -B1 "^Location:"|grep  "^ .*$"

This shows the xorg72.uci and xpdf-3.02.uci are not separated by a blank line as all the others are.
The Xorg info swallows Xpdf

I'll work on the load-local this afternoon or evening. Please let me know how you'd prefer it to be included.

Glad to hear.  I will look at those extensions info files and try to correct on the mydslinfo side.

On the Load Local, what I had in mind was a third button at the top of the display.

Then upon invocation if no database has been downloaded, show all buttons top and bottom ghosted out except "Update Database" and "Load Local" and perhaps a text message of "No database currently loaded" where you were showing the database date and count.

That way no delay and user controls when to try to "fetch" the database.



xorg72.uci.info has no eol. Which explains why xorg72.uci,info swallowd xpdf-3.0.2. I corrected xorg72.uci.info and uploaded a new mydslinfo.bz2
Quote
xorg72.uci.info has no eol

- I guess eol = end of line, but for future reference and since I am the guilty party, could you explain the error in a little more detail?

Usually caused by the editor that was used in the creation of the info file. Not something that you particually caused. When I opened it in vi I could see the noeol indicator. I just re-filed it.

If you can recall, what editor did you use?

Next Page...
original here.