use fs.copyfile instead of deprecated copy
copy arg in configure_file API is deprecated since meson
version 0.64.0. As we moved to meson version 1.1.1 we can
leverage the filesystem module copyfile() to achive the
same result.
Change-Id: I8ec540a505060306ff643a153cb2ca1b1ca4d35e
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
diff --git a/softoff/meson.build b/softoff/meson.build
index fb46280..9c8f443 100644
--- a/softoff/meson.build
+++ b/softoff/meson.build
@@ -17,9 +17,11 @@
install_dir: get_option('bindir'))
if get_option('systemd').enabled()
- configure_file(input: 'services/pldmSoftPowerOff.service',
- output: 'pldmSoftPowerOff.service',
- copy: true,
- install_dir: systemd_system_unit_dir)
+ filesystem.copyfile(
+ 'services/pldmSoftPowerOff.service',
+ 'pldmSoftPowerOff.service',
+ install: true,
+ install_dir: systemd_system_unit_dir
+ )
endif