From f56db4a0eaf275f10cfb967f5dd5508fc3c9e37e Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 2 Jan 2021 00:49:31 +0800 Subject: fix package.fetchdeps --- xmake/core/package/package.lua | 7 +++++-- 1 file 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 -- cgit v1.3.1