build: Silence a WARNING

Otherwise, Meson complains:
  completion/meson.build:4: WARNING: Project targeting '>= 0.58.0' but
    tried to use feature deprecated since '0.56.0':
    dependency.get_pkgconfig_variable. use
    dependency.get_variable(pkgconfig : ...) instead

Fallout from bafbbe81c9

https://github.com/containers/toolbox/pull/1096
This commit is contained in:
Debarshi Ray 2022-08-31 19:24:41 +02:00
parent 4dd73ad160
commit 1567d207c6

View file

@ -1,14 +1,14 @@
generate_completions_program = find_program('generate_completions.py')
if bash_completion.found()
bash_comp_dir = bash_completion.get_pkgconfig_variable('completionsdir')
bash_comp_dir = bash_completion.get_variable(pkgconfig: 'completionsdir')
else
bash_comp_dir = get_option('datadir') / 'bash-completion' / 'completions'
message('bash-completion not found: using', get_option('prefix') / bash_comp_dir, 'as a falback install directory')
endif
if fish.found()
fish_comp_dir = fish.get_pkgconfig_variable('completionsdir')
fish_comp_dir = fish.get_variable(pkgconfig: 'completionsdir')
else
fish_comp_dir = get_option('datadir') / 'fish' / 'completions'
message('fish not found: using', get_option('prefix') / fish_comp_dir, 'as a fallback install directory')