From 0ab4ecbd8c1f97c0dad90a94a53db424c1a8ad54 Mon Sep 17 00:00:00 2001 From: loonycyborg Date: Mon, 6 Jan 2020 15:02:20 +0300 Subject: [PATCH] scons: fix build failure on removal of campaigns due to old POTFILES.in --- po/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/SConscript b/po/SConscript index 70e2429e016..11b861acbd6 100644 --- a/po/SConscript +++ b/po/SConscript @@ -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: