]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: fix install path of example .network files
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 12:52:38 +0000 (21:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 22:16:56 +0000 (07:16 +0900)
It seems that when 'rename' field is set, the path (instead of the
filename) is appended to the 'install_dir'.

Follow-up for 9b7a624267fddc5c20bd15480e7a393d7a3b270e.

Fixes #29925.

network/meson.build

index b343bf6ad38f4a420d3452968165f7de177ee19d..4f17f7385edd1318e53072774f02246ee3fb4e0f 100644 (file)
@@ -22,7 +22,7 @@ if conf.get('ENABLE_NETWORKD') == 1
                 foreach f : example_network_files
                         install_data(
                                 f,
-                                rename : fs.replace_suffix(f, ''),
+                                rename : fs.replace_suffix(fs.name(f), ''),
                                 install_dir : networkdir)
                 endforeach
         else