From 5fc12f30a2eb4193ff68b08061d3cf46a0415a5c Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 25 Aug 2018 22:13:50 +0800 Subject: modify package local directory --- xmake/core/package/package.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/core') diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index a7f6e92b9..4a7a3ea18 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -164,7 +164,7 @@ end -- get the cached directory of this package function _instance:cachedir() - return path.join(package.cachedir(), self:name(), self:version_str()) + return path.join(package.cachedir(), self:name():sub(1, 1):lower(), self:name(), self:version_str()) end -- get the installed directory of this package @@ -176,7 +176,7 @@ function _instance:installdir() end -- make install directory - return path.join(package.installdir(self:from("global")), self:name(), self:version_str()) + return path.join(package.installdir(self:from("global")), self:name():sub(1, 1):lower(), self:name(), self:version_str()) end -- get versions -- cgit v1.3.1