scons: fix build failure on removal of campaigns due to old POTFILES.in

This commit is contained in:
loonycyborg 2020-01-06 15:02:20 +03:00
parent 46b9e22aef
commit 0ab4ecbd8c

View File

@ -24,7 +24,7 @@ def update_pot(target, source, env):
textdomains = glob("wesnoth*")
po4a_domains = Split("wesnoth-manpages wesnoth-manual")
textdomains = [domain for domain in textdomains if os.path.isdir(domain)]
textdomains = [domain for domain in textdomains if os.path.isdir(domain) and os.path.exists(domain+"/"+domain+".pot")]
linguas = Split(open("LINGUAS").read())
if "pot-update" in COMMAND_LINE_TARGETS: