Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (16) </ ... 6 7 8 9 10 [11] 12 13 14 15 16 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: MyDSL info parser, prototype< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 31 2008,13:47 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 31 2008,14:25 QUOTE

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.


Edited by roberts on Mar. 31 2008,15:42
Back to top
Profile PM WEB 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 31 2008,15:21 QUOTE

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
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Mar. 31 2008,15:57 QUOTE

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?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 31 2008,16:39 QUOTE

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?
Back to top
Profile PM WEB 
76 replies since Jan. 13 2008,15:39 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (16) </ ... 6 7 8 9 10 [11] 12 13 14 15 16 ... >/
reply to topic new topic new poll
Quick Reply: MyDSL info parser

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code