Satellite 5 API - getting 'source' packages

Latest response

Hi,

Using packages.findByNvrea I can find the specific installable packages I need then use packages.getPackageUrl to get a download link, but whilst there is a .src.rpm associated with the package visible by the web interface (at the same id), I can't find out how to get the filename/url/anything via the API.

Is there a call I'm just missing or is it not possible?

Stuart

Responses

Solution found. The calls are available in Satellite 5.7 and 5.8; the old 5.6 doesn't have them.

Ok, after upgrading to 5.8, it seems that it is still incomplete.

I'm now able to list the source packages (packages.listSourcePackages), but I am still unable to retrieve the source packages via an API call. The only data returned by listSourcePackages is the file name and an ID.

I tried using packages.getPackageUrl (as I use for normal packages), however this doesn't appear work on source packages; the ID's don't match up.

Anybody have any ideas?

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.