aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/fs.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-12-10 22:44:53 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-12-11 18:28:39 -0500
commit100456de0761ee949e2277c97746cb8571b6ba39 (patch)
treef93a90aa2b615c23a3a1f35c28795d921d56a490 /mesonbuild/modules/fs.py
parente5a92720348d45df000826536ca77a4c643bb662 (diff)
downloadmeson-100456de0761ee949e2277c97746cb8571b6ba39.zip
meson-100456de0761ee949e2277c97746cb8571b6ba39.tar.gz
meson-100456de0761ee949e2277c97746cb8571b6ba39.tar.bz2
fix broken fs.copyfile function that crashed if you tried to use it
At least, if you tried to use it when passing an install_dir. Because T.Sequence is horrible and we should never use it, and the annotations are a lie that produces bugs. So, fix the annotations on CustomTarget to never allow this to happen again, and also fix the function too. Move some definitions elsewhere inline to satisfy the linter. Fixes #11157
Diffstat (limited to 'mesonbuild/modules/fs.py')
-rw-r--r--mesonbuild/modules/fs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/fs.py b/mesonbuild/modules/fs.py
index eb19ec4..7d96995 100644
--- a/mesonbuild/modules/fs.py
+++ b/mesonbuild/modules/fs.py
@@ -302,7 +302,7 @@ class FSModule(ExtensionModule):
[dest],
build_by_default=True,
install=kwargs['install'],
- install_dir=kwargs['install_dir'],
+ install_dir=[kwargs['install_dir']],
install_mode=kwargs['install_mode'],
install_tag=[kwargs['install_tag']],
backend=state.backend,