summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index c128b8a0e..30c92a15f 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -994,6 +994,7 @@ function _instance:fetchdeps()
if not fetchinfo then
return
end
+ fetchinfo = table.copy(fetchinfo) -- avoid the cached fetchinfo be modified
local orderdeps = self:orderdeps()
if orderdeps then
local total = #orderdeps
@@ -1002,8 +1003,10 @@ function _instance:fetchdeps()
local depinfo = dep:fetch()
if depinfo then
for name, values in pairs(depinfo) do
- fetchinfo[name] = table.wrap(fetchinfo[name])
- table.join2(fetchinfo[name], values)
+ if name ~= "license" and name ~= "version" then
+ fetchinfo[name] = table.wrap(fetchinfo[name])
+ table.join2(fetchinfo[name], values)
+ end
end
end
end