[opensuse-buildservice] setting version from mercurial repository fails
What version of mercurial is used to process the _service files? 'osc service lr' works, but 'rr' fails and home:olh/mutt enters state 'broken'. Files could not be expanded: Cleaning: /lxc.tmp.18755/out/tmpdsZgGd Unfortunately obs-service-tar_scm lacks a shortcut to construct an usable version string, so I tried to emulate it like that: <services> <service name="tar_scm"> <param name="url">http://dev.mutt.org/hg/mutt</param> <param name="scm">hg</param> <param name="versionformat">{date(date, '%Y%m%dT%H%M%S')}.r{rev}</param> <param name="revision">default</param> <param name="filename">mutt</param> </service> <service name="recompress"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> <service name="set_version"/> </services> Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Monday 17 August 2015, 10:37:58 wrote Olaf Hering:
What version of mercurial is used to process the _service files?
3.1.2 from openSUSE 13.2
'osc service lr' works, but 'rr' fails and home:olh/mutt enters state 'broken'.
Files could not be expanded: Cleaning: /lxc.tmp.18755/out/tmpdsZgGd
Unfortunately obs-service-tar_scm lacks a shortcut to construct an usable version string, so I tried to emulate it like that:
<services> <service name="tar_scm"> <param name="url">http://dev.mutt.org/hg/mutt</param> <param name="scm">hg</param> <param name="versionformat">{date(date, '%Y%m%dT%H%M%S')}.r{rev}</param> <param name="revision">default</param> <param name="filename">mutt</param> </service> <service name="recompress"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> <service name="set_version"/> </services>
Olaf
-- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mon, Aug 17, Adrian Schröter wrote:
On Monday 17 August 2015, 10:37:58 wrote Olaf Hering:
What version of mercurial is used to process the _service files?
3.1.2 from openSUSE 13.2
Also this version works with 'osc service lr'. So it looks like a bug on the service side. Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mon, Aug 17, Olaf Hering wrote:
<services> <service name="tar_scm"> <param name="url">http://dev.mutt.org/hg/mutt</param> <param name="scm">hg</param> <param name="versionformat">{date(date, '%Y%m%dT%H%M%S')}.r{rev}</param> <param name="revision">default</param> <param name="filename">mutt</param> </service> <service name="recompress"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> <service name="set_version"/> </services>
I removed versionformat from the _service. Now the webUI shows a "_service:recompress:tar_scm:*" file with correct version. But once rpmbuild starts the Version: tag in the spec file is appearently still zero. I think this means set_version fails on the remote side. Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Monday 17 August 2015, 15:32:14 wrote Olaf Hering:
On Mon, Aug 17, Olaf Hering wrote:
<services> <service name="tar_scm"> <param name="url">http://dev.mutt.org/hg/mutt</param> <param name="scm">hg</param> <param name="versionformat">{date(date, '%Y%m%dT%H%M%S')}.r{rev}</param> <param name="revision">default</param> <param name="filename">mutt</param> </service> <service name="recompress"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> <service name="set_version"/> </services>
I removed versionformat from the _service. Now the webUI shows a "_service:recompress:tar_scm:*" file with correct version. But once rpmbuild starts the Version: tag in the spec file is appearently still zero. I think this means set_version fails on the remote side.
Right, the python rewrite broke it for every mode except "disabledrun"... Fix in version 0.5.2 now. -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Adrian Schröter
-
Olaf Hering