Re: [PATCH spice-server 1/3] fixup! Update gitlab-ci to use meson

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25/07/18 06:07, Frediano Ziglio wrote:
> Check we get correctly project version
> ---
>  meson.build | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/meson.build b/meson.build
> index c564941b9..360d1a543 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1,14 +1,17 @@
>  #
>  # project definition
>  #
> -# TODO: double check meson.project_version()
> -# Ideally we would use the output of git-version-gen as input for meson, because
> -# we can not check the result of the command before declaring project().
>  #
>  project('spice', 'c',
>           version : run_command('build-aux/git-version-gen', '.tarball-version').stdout().strip(),
>           license : 'LGPLv2.1',
>           meson_version : '>= 0.47.0')
> +# double check meson.project_version()
> +# we can not check the result of the command before declaring project().
> +version = run_command('build-aux/git-version-gen', '.tarball-version', check : true).stdout().strip()
> +if meson.project_version() != version
> +  error('Wrong project version')
> +endif
>  
>  spice_server_so_version = '1.12.4'
>  
> 


Thanks for all the fixups. I will merge them.

-- 
Eduardo de Barros Lima (Etrunko)
Software Engineer - RedHat
etrunko@xxxxxxxxxx
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]