aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index daef5fd..518ba10 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -2032,9 +2032,12 @@ This will become a hard error in the future.''' % kwargs['input'], location=self
'"rename" and "sources" argument lists must be the same length if "rename" is given. '
f'Rename has {len(rename)} elements and sources has {len(sources)}.')
- data = build.Data(
- sources, kwargs['install_dir'], kwargs['install_mode'],
- self.subproject, rename)
+ return self.install_data_impl(sources, kwargs['install_dir'], kwargs['install_mode'], rename)
+
+ def install_data_impl(self, sources: T.List[mesonlib.File], install_dir: str,
+ install_mode: FileMode, rename: T.Optional[str]) -> build.Data:
+ """Just the implementation with no validation."""
+ data = build.Data(sources, install_dir, install_mode, self.subproject, rename)
self.build.data.append(data)
return data