On Sun, Mar 29, 2009 at 11:09 PM, 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. > > You should really use the Python API we provide. > > Cheers, > -- > Shawn Walker
Hi Shawn, thanks for the clarification. I'm actually more used to Moinak's BeleniX constructor. I'm still reading a few books currently and didn't yet come to it (SPARC-LiveCD). This night I start (n o w). Regards, %martin
