From 5741caeb0454c1bee9ca865ce6c3dfdd980ecf3e Mon Sep 17 00:00:00 2001 From: Sylvain Henry Date: Thu, 25 Mar 2021 21:32:43 +0100 Subject: Only update config.sub when it already exists (#19574) --- boot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'boot') diff --git a/boot b/boot index ec37c169ad..a8cf8c49c0 100755 --- a/boot +++ b/boot @@ -138,7 +138,8 @@ def autoreconf(): for dir_ in ['.'] + glob.glob('libraries/*/'): if os.path.isfile(os.path.join(dir_, 'configure.ac')): print("Booting %s" % dir_) - if dir_ != '.': + # Update config.sub in submodules + if dir_ != '.' and os.path.isfile(os.path.join(dir_, 'config.sub')): shutil.copyfile('config.sub', os.path.join(dir_, 'config.sub')) processes[dir_] = subprocess.Popen(['sh', '-c', reconf_cmd], cwd=dir_) -- cgit v1.2.1