aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-10-28 18:56:54 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-10-29 23:33:21 +0200
commitfe3efe0bc6f0bb0f282a2d1f7db4e72f16a3f51c (patch)
treed9a447a0f8657b2bff9cb07ea0204277e461bd19 /mesonbuild
parenta52cd31a6ccc784cdcacebdb33719b223202f35d (diff)
downloadmeson-fe3efe0bc6f0bb0f282a2d1f7db4e72f16a3f51c.zip
meson-fe3efe0bc6f0bb0f282a2d1f7db4e72f16a3f51c.tar.gz
meson-fe3efe0bc6f0bb0f282a2d1f7db4e72f16a3f51c.tar.bz2
Fix merge file using an array. Closes #4424.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/modules/i18n.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py
index cde548f..aeab813 100644
--- a/mesonbuild/modules/i18n.py
+++ b/mesonbuild/modules/i18n.py
@@ -85,6 +85,10 @@ class I18nModule(ExtensionModule):
if hasattr(inputfile, 'held_object'):
ct = build.CustomTarget(kwargs['output'] + '_merge', state.subdir, state.subproject, kwargs)
else:
+ if isinstance(inputfile, list):
+ # We only use this input file to create a name of the custom target.
+ # Thus we can ignore the other entries.
+ inputfile = inputfile[0]
if isinstance(inputfile, str):
inputfile = mesonlib.File.from_source_file(state.environment.source_dir,
state.subdir, inputfile)