summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/require/impl/actions/download_resources.lua2
-rw-r--r--xmake/modules/private/action/require/impl/actions/patch_sources.lua2
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