Mailinglist Archive: opensuse-buildservice (327 mails)

< Previous Next >
[opensuse-buildservice] Retrieving package version numbers
  • From: Guido Berhoerster <gber@xxxxxxxxxxxx>
  • Date: Mon, 4 Apr 2011 13:12:29 +0200
  • Message-id: <20110404111229.GB4508@wopr.local.invalid>

is there a way to retrieve the version number of a package,
possibly even through the publically accessible part of the API?

So far I've found that the buildinfo response to contains a
<versrel> element. This however requires authentication and is
not very efficient as a repository and architecture need to be
discovered first.
A rather hackish way which does not require authentication is to
extract the version by parsing the filenames returned from the
fileinfo response. But this also requires discovering the
architecture and repo and has the additional disadvantage that it
fails if no packages are built.

I'm trying to programmatically compare the versions of packages
inside OBS with upstream packages or packages in other automatic
build systems.
Guido Berhoerster
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups