On Mon, Mar 30, 2009 at 2:39 AM, Shawn Walker <swalker at opensolaris.org>wrote:

> kunal ghosh wrote:
>
>> hi guys, i've been working on a GUI for the DistroConstructor and have
>> come across a problem.
>> to get the info about a package to be put on a table, like the existing
>> package manager, i am doing as follows
>> 1.pkg list -a to get the list of package names
>> 2.pkg info <package> to get its info and parse it and put it in the table.
>> alternately i could do pkg info -r to get all the package info
>> but the problem is that it takes a lot of time , about a minute or so,
>> which is unacceptable for a wizard app.
>> Any suggestions , or means, to get the details of all packages of
>> registered authorities faster ?
>>
>
> -r has to retrieve the information from the server and then parse it, so
> it will definitely take a lot more time.
>
> At this time, there really isn't a fast way to get the details of all
> packages of registered publishers quickly from the cli.
>
> If you were using the python pkg.client.api, there are APIs in place that
> would make it much faster to retrieve this information than using the cli.

thanks shawn , i am currently using java ( a long story, as to why  java for
this gui ). I should be able to use the api using Jython. thanks for letting
me know about it.

>
>
> You should really use the Python API we provide.
>
> Cheers,
> --
> Shawn Walker
>
>


-- 
Kunal Ghosh
BE 4th semester
Dept of Computer Sc. & Engineering.
Sir MVIT
Bangalore,India

Quote:
Live Long And Prosper.--A popular Vulcan salutation

Website:www.kunalghosh.net46.net
Blog:kunalghosh.wordpress.com
V-card:http://tinyurl.com/86qjyk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/caiman-discuss/attachments/20090330/96de20da/attachment.html>

Reply via email to