Hi,

This week I have made a DAK module called generate_metadata.py.[0]
It generates a yaml file conforming to DEP-11[1] draft.

It also fetches Screenshots of a package(component) using urllib.
It also create a cache for the icons i.e it extracts icons from a deb
package.

The module can be run using a dak command:
>> dak.py generate-metadata <suitename>

The module make use of another script called check_appdata.py[2] which
lists all the packages(.deb files) that has appstream metadata and .desktop
files associated with them.

Next task is to create a tarball of all the icons. Inserting the yaml file
into the database. And making use of DAK's orm to fetch data rather than
using my own sql.

[0]https://github.com/abhi11/dak/blob/master/dak/generate_metadata.py
[1]https://wiki.debian.org/DEP-11#Example_of_Components.yml
[2]https://github.com/abhi11/dak/blob/master/dak/check_appdata.py

Thanks
-- 
*Abhishek Bhattacharjee*
*Pune Institute of Computer Technology*
_______________________________________________
Soc-coordination mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/soc-coordination

Reply via email to