Mailinglist Archive: opensuse-buildservice (256 mails)

< Previous Next >
Re: [opensuse-buildservice] extending the /source/project backend call
On Tue, Aug 02, 2011 at 08:41:31PM +0200, Marcus Hüwe wrote:
what about extending the /source/project backend call with an
additional "withsrcmd5" query parameter? Instead of the plain
package list it will return also the latest srcmd5 for each
This call can be used by osc to check which packages in a local
project have to be updated. It would probably speed up the
update process for large projects because osc only needs to
do one http request (instead one for each package) in order
to decide if a package has to be updated or not.

Something like this already exists: you get a "sourceinfolist"
if you do a view=info request on a project. The API currently
blocks this, though, as there's code missing that filters out
packages where the requester has no access rights.

A drawback is that this call might be a bit "expensive" because
for each package the getfilelist() function has to be called
(a simple getrev() for each package won't work with links or

That actually depends a bit on your osc settings: Depending on
whether you want expanded/unexpanded/baserev expanded checkouts,
you need a different srcmd5. view=info currently returns the
expanded version (i.e. the version used for building the package).


Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups