summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-21 23:07:41 +0800
committerruki <[email protected]>2023-03-21 23:07:41 +0800
commit0ab2f772ccec12986c2755c182d73b67c688cd0d (patch)
tree67570579430f4b517ae64f8c7f73a9043b96371a /xmake/core/package/package.lua
parent8d75606dbf979386ed314bcbc01ef38dcfa10a5e (diff)
fix fallback build
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index b3d7fa35d..2df0adf72 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -295,7 +295,10 @@ function _instance:artifacts_set(artifacts_info)
local versions = self:get("versions")
if versions then
-- backup previous package configuration
- self._ARTIFACTS_BACKUP = {urls = table.copy(self:urls()), versions = table.copy(versions), install = self:get("install")}
+ self._ARTIFACTS_BACKUP = {
+ urls = table.copy(self:urls()),
+ versions = table.copy(versions),
+ install = self:script("install")} -- self:get() will get a table, it will be broken when call self:set()
-- we switch to urls of the precompiled artifacts
self:urls_set(table.wrap(artifacts_info.urls))