Mailinglist Archive: opensuse-buildservice (206 mails)

< Previous Next >
[opensuse-buildservice] Re: osc-plugin-collab as source service?
  • From: Cristian Morales Vega <cmorve69@xxxxxxxx>
  • Date: Mon, 21 Feb 2011 04:43:25 +0100
  • Message-id: <>
Someone with a minimum of python understanding, that I lack, feels
like porting
(new version detection logic) and
(download and .spec file update logic) to a source service? It would
be a more complete obs-service-update_source.
It should not be a lot more than modify the main function so

limits = parse_limits(limit_file)

is converted to something like

# If --outdir was received we are running as a source service
if options.outdir:
if options.max_version:
limits = (, options.max_version)
elif not options.allow_unstable:
limits = (, 'no-odd-unstable')
limits = parse_limits(limit_file)

and the same for

file = open(upstream_file)
lines = file.readlines()

that should be

if options.outdir:
if options.branch:
lines = [ + '|' + options.branch + ':' +
options.method + ':' + '\n' ]
lines = [ + ':' + options.method + ':' + '\n' ]

with a .service file similar to

<service name="update_source2">
<summary>Update sources2</summary>
<description>This service is tries to find a new version upstream
and updates the sources.</description>
<parameter name="name">
<description>the upstream module name found in tarball names</parameter>
<parameter name="branch">
<parameter name="method">
<description>one of 'upstream', 'ftpls', 'httpls', 'dualhttpls',
'subdirhttpls', 'sf', 'google', 'lp'</parameter>
<parameter name="info">
<description>info depends on method</parameter>
<parameter name="max_version">
<description>Not have a version greater or equal than a specified
<parameter name="allow_unstable">
<description>not have unstable versions (for modules following the
x.y.z release scheme, where it's unstable when y is odd)</parameter>

2011/2/19 Vincent Untz <vuntz@xxxxxxxxxxxx>:
Le samedi 19 février 2011, à 10:58 +0100, Cristian Morales Vega a écrit :
I just found obs-service-update_source
and found it limited when compared to
(no way to check sourceforge tarballs but set an specific mirror,

Do you have any plans to convert the upstream update part of
osc-plugin-collab to a source service? Any known problems?

Ideally, yes, I'd do it. But I really am too short in time for this, so
it won't happen in the short term unless someone else does the job.

It might make sense to suggest this on the opensuse-buildservice mailing
list -- I'm willing to help people who'd work on that, fwiw.
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages