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

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