From 48ab973db626a08501948a7a15b2488eaa1bd4bb Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev <dpldobrev@protonmail.com> Date: Thu, 26 Nov 2020 22:52:58 +0200 Subject: [PATCH] Don't download LLVM if its destination exists Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com> --- build/llvm/LLVM.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/llvm/LLVM.lua b/build/llvm/LLVM.lua index b5b8de31..44c7eaf4 100644 --- a/build/llvm/LLVM.lua +++ b/build/llvm/LLVM.lua @@ -187,7 +187,9 @@ function download_llvm() -- check if we already have the file downloaded if os.isfile(archive) then print("Archive " .. archive .. " already exists.") - else + elseif os.isdir(pkg_name) then + print("Directory " .. pkg_name .. " already exists.") + else msg, code = download(base .. archive, archive, true) if msg ~= "OK" then