Skip to content

Commit

Permalink
Compile tzdata if compiled dir is empty (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus authored Sep 7, 2024
1 parent ea5b3d7 commit 9ff3214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tzdata/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9ff3214

Please sign in to comment.