summaryrefslogtreecommitdiff
path: root/xmake/core/package
diff options
context:
space:
mode:
authorruki <[email protected]>2018-08-25 22:13:50 +0800
committerruki <[email protected]>2018-08-25 22:13:50 +0800
commit5fc12f30a2eb4193ff68b08061d3cf46a0415a5c (patch)
treeece48218dfdbe602902f92d718ccb4248819b9da /xmake/core/package
parent4ce0113475c5165303dedb594d1ac8cbc42a22f9 (diff)
modify package local directory
Diffstat (limited to 'xmake/core/package')
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 2 insertions, 2 deletions
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