From: Xavier Claessens Date: Thu, 12 Mar 2020 18:40:58 +0000 (-0400) Subject: Meson: dict.has_key() method has no 'default' argument X-Git-Tag: 1.19.3~481^2~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66d22c103b4decd25e0714bd44c88abdca2c1b2a;p=platform%2Fupstream%2Fgstreamer.git Meson: dict.has_key() method has no 'default' argument Meson silently accept those keyword arguments, will produce a warning in the future: https://github.com/mesonbuild/meson/pull/6780 --- diff --git a/meson.build b/meson.build index 4055415..3333a23 100644 --- a/meson.build +++ b/meson.build @@ -108,7 +108,7 @@ foreach sp : subprojects # Replace by using subproject.get_variable('plugins', []) # when https://github.com/mesonbuild/meson/pull/5426/files # is merged and released - if build_infos.has_key('has-plugins', default: false) + if build_infos.get('has-plugins', false) plugins = subproj.get_variable('plugins') else plugins = [] @@ -121,7 +121,7 @@ foreach sp : subprojects message('Created symlink to ' + project_name) endif - if not meson.is_cross_build() and build_infos.has_key('build-hotdoc', default: false) + if not meson.is_cross_build() and build_infos.get('build-hotdoc', false) if plugins.length() > 0 plugins_doc_caches += [subproj.get_variable('plugins_doc_dep')] endif