On Wed, 2011-02-09 at 19:46 +0100, Pavol Rusnak wrote:
> Hi all!
> 
> I wrote appdata-generate[1] script as a proof-of-concept code. It takes
> all *.desktop files in the current directory and creates appdata.xml
> from them. It's written in python, so it should be easy to incorporate
> into createrepo later (and it's not that complex, so porting it to
> language, in which deb counterpart of createrepo is written in, should
> not be hard as well). Comments/patches welcome as usual! :-)
> 
> [1] http://gitorious.org/appstream/resources/trees/master/generator
> 
> PS: You can validate the resulting XML with the following command:
> 
> $ xmllint --schema appdata.xsd appdata.xml

so to make it work in createrepo we'll need:

1. to read the desktop files out of the rpms themselves - that code
exists
2. we'll need to have it work properly with --update so we're not
constantly doing the same thing over and over again on each repo
recreation. - does the code exist to read and break up the xml into
per-desktop-file chunks?

How we do it in the rest of createrepo is we read the existing xml and
prune out those which have been deleted/modified and add those which
have been added/changed.

If that code exists already that makes life quicker to get it into
createrepo.

-sv



_______________________________________________
Distributions mailing list
Distributions@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/distributions

Reply via email to