aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-01-11 20:20:50 -0500
committerDylan Baker <dylan@pnwbakers.com>2022-01-11 22:28:00 -0800
commit704e9802c9f424a57c32d9e63ececfece807529a (patch)
treec418f7f361a8af2ce99db5d9d76fa75f0b5a8f6d /mesonbuild/modules/gnome.py
parentf956b9571216c185d42c7dc9a75d17d25dfe2c2e (diff)
downloadmeson-704e9802c9f424a57c32d9e63ececfece807529a.zip
meson-704e9802c9f424a57c32d9e63ececfece807529a.tar.gz
meson-704e9802c9f424a57c32d9e63ececfece807529a.tar.bz2
gome.gdbus_codegen: fix annotations argument for multiple annotations
Per the gdbus-codegen documentation, this "may be used several times", and it is: - a valid use case - used that way in the wild Fixes building at least geoclue2, gdm.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index dfc66c2..b2224da 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -1437,7 +1437,7 @@ class GnomeModule(ExtensionModule):
'annotations', ContainerTypeInfo(list, str),
listify=True,
default=[],
- validator=lambda x: 'must be made up of 3 strings for ELEMENT, KEY, and VALUE' if len(x) != 3 else None
+ validator=lambda x: 'must be made up of 3 strings for ELEMENT, KEY, and VALUE' if len(x) % 3 != 0 else None
),
KwargInfo('install_header', bool, default=False, since='0.46.0'),
KwargInfo('install_dir', (str, NoneType), since='0.46.0'),