From 9ff3214df6b3f5f9add53e52a5584156da7748b0 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Sat, 7 Sep 2024 08:21:55 -0500 Subject: [PATCH] Compile tzdata if compiled dir is empty (#474) --- src/tzdata/build.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tzdata/build.jl b/src/tzdata/build.jl index cfe3a94b2..55652f66d 100644 --- a/src/tzdata/build.jl +++ b/src/tzdata/build.jl @@ -53,7 +53,7 @@ function build(version::AbstractString, working_dir::AbstractString) regions = intersect!(readdir(tz_source_dir), REGIONS) end - if !isdir(compiled_dir) + if !isdir(compiled_dir) || isempty(readdir(compiled_dir)) @info "Compiling tzdata $version region data" mkpath(compiled_dir) tz_source = TZSource(joinpath.(tz_source_dir, regions))