[csw-maintainers] Catalog checks via REST

Maciej (Matchek) Bliziński maciej at opencsw.org
Thu Dec 29 20:59:41 CET 2011


2011/12/29 Dagobert Michelsen <dam at opencsw.org>:
> I did some fiddling and get results like this for each entry:
>
>          {
>            'catalogname' => 'py_mysql',
>            'version_string' => '1.2.3,REV=2011.03.13',
>            'vendor_url' => 'http://pypi.python.org/pypi/MySQL-python',
>            'md5_sum' => 'b8bd74a346662f8da1edd0f915c1d0ab',
>            'arch' => 'sparc',
>            'osrel' => 'SunOS5.9',
>            'size' => 43319,
>            'file_basename' => 'py_mysql-1.2.3,REV=2011.03.13-SunOS5.9-sparc-CSW.pkg.gz',
>            'maintainer_email' => 'maciej at ...',

I expect more spam now. :-P

>            'version' => '1.2.3,REV=2011.03.13',
>            'mtime' => '2011-03-13 07:48:49',
>            'pkgname' => 'CSWpy-mysql',
>            'repository_url' => 'https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/lang-python/mysql-python/trunk/Makefile',
>            'basename' => 'py_mysql-1.2.3,REV=2011.03.13-SunOS5.9-sparc-CSW.pkg.gz',
>            'maintainer_full_name' => 'Maciej Blizinski',
>            'filename_arch' => 'sparc',
>            'rev' => '2011.03.13'
>          },
>
> 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 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.

Maciej


More information about the maintainers mailing list