aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/modules/gnome.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 70d8c9c..962bbb1 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -1051,9 +1051,8 @@ class GnomeModule(ExtensionModule):
sources = args[1]
if not sources:
raise MesonException('Yelp requires a list of sources')
- else:
- if len(args) > 1:
- mlog.warning('"gnome.yelp" ignores positional sources arguments when the "sources" keyword argument is set')
+ elif args[1]:
+ mlog.warning('"gnome.yelp" ignores positional sources arguments when the "sources" keyword argument is set')
source_str = '@@'.join(sources)
langs = kwargs['languages']