Blame SOURCES/0009-gnome-allow-duplicated-languages-for-gnome.yelp.patch

26d557
From 8c0af255ff937329931372b33335ec580a8e9daa Mon Sep 17 00:00:00 2001
26d557
From: Paolo Bonzini <pbonzini@redhat.com>
26d557
Date: Thu, 3 Nov 2022 17:49:25 +0100
26d557
Subject: [PATCH 9/9] gnome: allow duplicated languages for gnome.yelp
26d557
Content-Type: text/plain
26d557
26d557
This fixes building Glade 3.38.2.
26d557
26d557
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
26d557
---
26d557
 mesonbuild/modules/gnome.py | 5 +++++
26d557
 1 file changed, 5 insertions(+)
26d557
26d557
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
26d557
index d8669bb48..98ec8a5ca 100644
26d557
--- a/mesonbuild/modules/gnome.py
26d557
+++ b/mesonbuild/modules/gnome.py
26d557
@@ -1303,7 +1303,12 @@ class GnomeModule(ExtensionModule):
26d557
                                     state.environment)
26d557
         targets.append(pottarget)
26d557
 
26d557
+        langs_done = set()
26d557
         for l in langs:
26d557
+            if l in langs_done:
26d557
+                mlog.warning(f'duplicate language "{l}" in LINGUAS file')
26d557
+                continue
26d557
+            langs_done.add(l)
26d557
             l_subdir = os.path.join(state.subdir, l)
26d557
             l_install_dir = os.path.join(install_dir, l, project_id)
26d557
 
26d557
-- 
26d557
2.38.1
26d557