[virt-manager PATCH v4 1/9] setup: split listing of .in sources for POTFILES

Pino Toscano ptoscano at redhat.com
Wed Jul 8 14:54:12 UTC 2020


Extract them from _generate_potfiles_in() to an own
_generate_meta_potfiles_in() function.

Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
 setup.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 9d130dc3..3e921b45 100755
--- a/setup.py
+++ b/setup.py
@@ -59,6 +59,13 @@ _appdata_files = [
 ]
 
 
+def _generate_meta_potfiles_in():
+    potfiles = ""
+    for ignore, filelist in _desktop_files + _appdata_files:
+        potfiles += "\n".join(filelist) + "\n"
+    return potfiles
+
+
 def _generate_potfiles_in():
     def find(dirname, ext):
         ret = []
@@ -72,8 +79,7 @@ def _generate_potfiles_in():
     potfiles += "\n".join(find("virtManager", "*.py")) + "\n\n"
     potfiles += "\n".join(find("virtinst", "*.py")) + "\n\n"
 
-    for ignore, filelist in _desktop_files + _appdata_files:
-        potfiles += "\n".join(filelist) + "\n"
+    potfiles += _generate_meta_potfiles_in()
     potfiles += "\n"
 
     potfiles += "\n".join(["[type: gettext/glade]" + f for
-- 
2.26.2




More information about the virt-tools-list mailing list