[csw-maintainers] Catalog checks via REST

Dagobert Michelsen dam at opencsw.org
Thu Dec 29 23:04:20 CET 2011


Hi Maciej,

Am 29.12.2011 um 20:59 schrieb Maciej (Matchek) Bliziński:
> 2011/12/29 Dagobert Michelsen <dam at opencsw.org>:
>> There is no information about the dependencies.
> 
> Yes, there is no dependency information, because this particular data
> structure is retrieved directly from the fields in the MySQL tables.
> The dependency information is currently only present in the serialized
> data (a binary blob). To get the full information, you need to
> retrieve the full deserialized package stats. The URL fragment regex
> matcher is:
> 
> /rest/srv4/([0-9a-f]{32})/pkg-stats/

I adjusted my code to retrieve "depends" and "i_depends" for each package and
I think this is not practical: getting all the data takes some hours
whereas parsing the catalog file takes only a second. I really like the
REST approach, but at the current performance the checks are just not
feasible. 

>> I am really sorry, but I keep forgetting how to
>> get this information. I suggest adding it to this page so it is easily usable next time:
>>  http://wiki.opencsw.org/restful-interface
> 
> I updated the wiki: the page to look at is http://buildfarm.opencsw.org/pkgdb/
> 
> It has a link to the URL definitions.

Cool, I found everything I needed in there :-)


Best regards

  -- Dago



More information about the maintainers mailing list