summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-05 00:42:25 +0800
committerruki <[email protected]>2020-11-05 00:42:25 +0800
commit5fb5cf85a0f1a25a542596299a11f9dee6d42fe9 (patch)
treee061d81e5b5050ec3b79fcbdf00bc6afbb6cdbd6
parent121b0e118edf589e3b0a6ef4947ef5339f340557 (diff)
improve fetch package/bin
-rw-r--r--xmake/core/package/package.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 684055038..d1bf52589 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -868,6 +868,11 @@ function _instance:fetch(opt)
buildhash = self:buildhash(),
norun = true, -- we need not run it to check for xmake/packages, @see https://github.com/xmake-io/xmake-repo/issues/66
force = opt.force})
+
+ -- may be toolset, not single tool
+ if not fetchinfo and os.isfile(self:manifest_file()) then
+ fetchinfo = {name = self:name(), version = self:version_str(), bindir = self:installdir("bin")}
+ end
if fetchinfo then
isSys = self._isSys
end