On Sat, Dec 20, 2008 at 11:35 PM, Andrew Stormont
<andyjstorm...@googlemail.com> wrote:
> Hi,
>
>> I don't know just how far in you are, but you might find it nice
>> to use AbsTk to build the interface and add GTK+ support to it, so it
>> would work everywhere
>
> I had thought about it, and I may very well do in the future.
Great.
>> I'd also suggest you take a look at Freshen and the libraries it
>> provides, that might be helpful in finding and installing the updates.
>
> I took a look at Freshen but I couldn't get it to work.
>
> I also had a look at other commands like ShowPackages and GetAvailable,
> which I originally used as the backend for GMan.
>
> So what I do now is i parse the .conf files for various scripts and maintain
> my own package list separate from the rest of the Scripts, although I am
> updating the descriptions the same way the other scripts do.
That's pretty ugly (and likely to be fragile too). What is it about
Freshen that doesn't work? The last release definitely runs fine
against the last Scripts.

`import Freshen`, and then `Freshen.Request` is the most direct access
to the updates list, and returns an ordered iterable of Freshen.Update
objects. The installedPrograms, updateAvailable, latestAvailable,
latestInstalled, and installUpdate methods might also be useful. The
library is moderately well documented. Letme know if there's anything
it doesn't cover.

You'll probably find it better to use the Python modules directly
rather than trying to run the commands and parse the output - they
generally provide a function of the same name inside them with the
broad interface, so `from GetAvailable import GetAvailable` gives you
something usable, and the same for most of the others.
> PS:
>
> GMan reveals just how many packages dont have a description,
> is there some sort of API I could hook into to let users submit one?
>
> That would be killer.
They can submit new recipes with ContributeRecipe.
-Michael
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to