summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-09-26 23:11:34 +0800
committerruki <[email protected]>2018-09-26 13:09:26 +0800
commit41917d1e75c3f7489c9888afceb1df73405e4ed5 (patch)
tree678f8eaf35e55fc783bfbca5805376d6b2f1b158
parent7acd4ba8d245606b606ab14cd04af3bd94170e2f (diff)
fix fetch package cache
-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 939d58028..3d0996eb8 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -490,13 +490,13 @@ function _instance:fetch(opt)
-- fetch it from the prefix directories first
if not fetchinfo and system ~= true then
-- add cache key to make a distinction with finding system package
- fetchinfo = self._find_package(self:name(), {prefixdirs = self:prefixdir(), system = false, cachekey = "package:fetch", force = opt.force})
+ fetchinfo = self._find_package(self:name(), {prefixdirs = self:prefixdir(), system = false, cachekey = "fetch:prefix", force = opt.force})
if fetchinfo then fetchfrom = self._FROMKIND end
end
-- fetch it from the system directories
if not fetchinfo and system ~= false then
- fetchinfo = self._find_package(self:name(), {force = opt.force, system = true})
+ fetchinfo = self._find_package(self:name(), {force = opt.force, cachekey = "fetch:system", system = true})
if fetchinfo then fetchfrom = "system" end
end
end