From f504b3ea02891099720b03c6b6464695ebd84d06 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 15 Jun 2023 23:27:17 +0800 Subject: remove force when download resource and patches #3804 --- .../modules/private/action/require/impl/actions/download_resources.lua | 2 +- xmake/modules/private/action/require/impl/actions/patch_sources.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/private/action/require/impl/actions/download_resources.lua b/xmake/modules/private/action/require/impl/actions/download_resources.lua index a62d3a3af..129473430 100644 --- a/xmake/modules/private/action/require/impl/actions/download_resources.lua +++ b/xmake/modules/private/action/require/impl/actions/download_resources.lua @@ -100,7 +100,7 @@ function _download(package, resource_name, resource_url, resource_hash) -- the package file have been downloaded? local cached = true - if option.get("force") or not os.isfile(resource_file) or resource_hash ~= hash.sha256(resource_file) then + if not os.isfile(resource_file) or resource_hash ~= hash.sha256(resource_file) then -- no cached cached = false diff --git a/xmake/modules/private/action/require/impl/actions/patch_sources.lua b/xmake/modules/private/action/require/impl/actions/patch_sources.lua index 7259cc6de..c6ba8607d 100644 --- a/xmake/modules/private/action/require/impl/actions/patch_sources.lua +++ b/xmake/modules/private/action/require/impl/actions/patch_sources.lua @@ -64,7 +64,7 @@ function _patch(package, patch_url, patch_hash) -- the package file have been downloaded? local cached = true - if option.get("force") or not os.isfile(patch_file) or not _check_sha256(patch_hash, patch_file) then + if not os.isfile(patch_file) or not _check_sha256(patch_hash, patch_file) then -- no cached cached = false -- cgit v1.3.1