summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-26 22:40:26 +0800
committerruki <[email protected]>2022-05-26 22:40:26 +0800
commit2889113f4a23a6442cf083f0e128228c13f262ba (patch)
tree478f466ae2caf42ce568df165d04d21f66d02b33 /xmake/modules
parent58aabd2476b610b706b38df17b7b12039a46ee3c (diff)
use is_precompiled
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/action/require/impl/actions/download_resources.lua2
-rw-r--r--xmake/modules/private/action/require/impl/actions/install.lua2
-rw-r--r--xmake/modules/private/action/require/impl/actions/patch_sources.lua2
3 files changed, 3 insertions, 3 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 771a733e4..b7aea15a7 100644
--- a/xmake/modules/private/action/require/impl/actions/download_resources.lua
+++ b/xmake/modules/private/action/require/impl/actions/download_resources.lua
@@ -141,7 +141,7 @@ end
function main(package)
-- we need not download it if we use the precompiled artifacts to install package
- if not package:is_built() then
+ if package:is_precompiled() then
return
end
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua
index d8d5cf606..29725e973 100644
--- a/xmake/modules/private/action/require/impl/actions/install.lua
+++ b/xmake/modules/private/action/require/impl/actions/install.lua
@@ -324,7 +324,7 @@ function main(package)
if installed_now then
-- fix paths for the precompiled package
- if not package:is_built() and not package:is_system() then
+ if package:is_precompiled() and not package:is_system() then
_fix_paths_for_precompiled_package(package)
end
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 d5874f8f5..10b89c911 100644
--- a/xmake/modules/private/action/require/impl/actions/patch_sources.lua
+++ b/xmake/modules/private/action/require/impl/actions/patch_sources.lua
@@ -102,7 +102,7 @@ end
function main(package)
-- we need not patch it if we use the precompiled artifacts to install package
- if not package:is_built() then
+ if package:is_precompiled() then
return
end