Someone with a minimum of python understanding, that I lack, feels like porting http://www.gitorious.org/opensuse/osc-plugin-collab/blobs/master/server/upst... (new version detection logic) and http://www.gitorious.org/opensuse/osc-plugin-collab/blobs/master/osc-collab.... (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.name, options.max_version) elif not options.allow_unstable: limits = (options.name, 'no-odd-unstable') else: 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.name + '|' + options.branch + ':' + options.method + ':' options.info + '\n' ] else: lines = [ options.name + ':' + options.method + ':' options.info + '\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> <required/> </parameter> <parameter name="branch"> <description>branch</parameter> </parameter> <parameter name="method"> <description>one of 'upstream', 'ftpls', 'httpls', 'dualhttpls', 'subdirhttpls', 'sf', 'google', 'lp'</parameter> <allowedvalue>ftpls</allowedvalue> <allowedvalue>httpls</allowedvalue> <allowedvalue>dualhttpls</allowedvalue> <allowedvalue>subdirhttpls</allowedvalue> <allowedvalue>sf</allowedvalue> <allowedvalue>google</allowedvalue> <allowedvalue>lp</allowedvalue> <required/> </parameter> <parameter name="info"> <description>info depends on method</parameter> <required/> </parameter> <parameter name="max_version"> <description>Not have a version greater or equal than a specified version</description> </parameter> <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> </parameter> </service> 2011/2/19 Vincent Untz <vuntz@opensuse.org>:
Le samedi 19 février 2011, à 10:58 +0100, Cristian Morales Vega a écrit :
I just found obs-service-update_source (https://build.opensuse.org/package/view_file?file=update_source&package=obs-service-update_source&project=openSUSE:Tools:Unstable) and found it limited when compared to http://gitorious.org/opensuse/osc-plugin-collab/trees/master/server/upstream (no way to check sourceforge tarballs but set an specific mirror, etc.)
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@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org