From a739383fc223506abea328e3bc73efec29890b5d Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 25 Jun 2025 15:17:55 +0200 Subject: [PATCH] meson: do not download effective_tld_names.dat if already existing. Signed-off-by: Miod Vallat --- pdns/recursordist/meson.build | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pdns/recursordist/meson.build b/pdns/recursordist/meson.build index b81584dd61..5f7c670799 100644 --- a/pdns/recursordist/meson.build +++ b/pdns/recursordist/meson.build @@ -354,12 +354,14 @@ librec_signers_openssl = declare_dependency( pubsuffix_dl_source = 'effective_tld_names.dat' pubsuffix_cc = src_dir / 'pubsuffix.cc' if not fs.is_file(pubsuffix_cc) - curl_command = find_program('curl', required: true) - pubsuffix_dl_source = custom_target( - 'pubsuffix-dl', - command: [curl_command, '-s', '-S', '-o', '@OUTPUT@', 'https://publicsuffix.org/list/public_suffix_list.dat'], - output: pubsuffix_dl_source - ) + if not fs.is_file(pubsuffix_dl_source) + curl_command = find_program('curl', required: true) + pubsuffix_dl_source = custom_target( + 'pubsuffix-dl', + command: [curl_command, '-s', '-S', '-o', '@OUTPUT@', 'https://publicsuffix.org/list/public_suffix_list.dat'], + output: pubsuffix_dl_source + ) + endif mkpubsuffix_command = find_program('mkpubsuffixcc', required: true) pubsuffix_cc = custom_target( -- 2.47.2