mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-03 01:18:00 +03:00
setup: split listing of .in sources for POTFILES
Extract them from _generate_potfiles_in() to an own _generate_meta_potfiles_in() function. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
parent
a8d2438d5a
commit
fdc902e461
10
setup.py
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user