core: respect install_sysconfdir_samples in meson file

The refactoring done in e11a25cadb caused the configuration files to be
installed into the pkgsysconfdir regardless of the state of the
install_sysconfdir_samples boolean that indicates whether or not the
sample files should be installed.
This commit is contained in:
Andreas Rammhold
2021-07-26 16:57:43 +02:00
parent b4f0261337
commit cfd760b6a7

View File

@@ -195,7 +195,7 @@ foreach item : in_files
output: file,
command : [meson_render_jinja2, config_h, '@INPUT@'],
capture : true,
install : dir != 'no',
install : (dir == pkgsysconfdir and install_sysconfdir_samples) or (dir != pkgsysconfdir and dir != 'no'),
install_dir : dir)
endforeach