diff options
| author | ruki <[email protected]> | 2023-06-15 23:27:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-06-15 23:27:17 +0800 |
| commit | f504b3ea02891099720b03c6b6464695ebd84d06 (patch) | |
| tree | 5b4c2ad417f5c65b14f6e7f8eebd32672a29d122 | |
| parent | bcb875cc563c0345454bc62ca59e24ae25cb5216 (diff) | |
remove force when download resource and patches #3804
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download_resources.lua | 2 | ||||
| -rw-r--r-- | 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 |
