summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-13 11:19:00 +0800
committerruki <[email protected]>2020-09-13 11:19:00 +0800
commitef70952ae3e4425c670673954b62be65437f1e58 (patch)
tree3399e04276ab543aa31bee446cc9a8265948e8eb /xmake/core/sandbox/modules
parentbb0b06f897f920f28309417a32f9bcb07987d0d9 (diff)
add private network
Diffstat (limited to 'xmake/core/sandbox/modules')
-rw-r--r--xmake/core/sandbox/modules/import/core/package/repository.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/import/core/package/repository.lua b/xmake/core/sandbox/modules/import/core/package/repository.lua
index ff398ff1b..8c5be515e 100644
--- a/xmake/core/sandbox/modules/import/core/package/repository.lua
+++ b/xmake/core/sandbox/modules/import/core/package/repository.lua
@@ -22,6 +22,7 @@
local sandbox_core_package_repository = sandbox_core_package_repository or {}
-- load modules
+local global = require("base/global")
local project = require("project/project")
local repository = require("package/repository")
local raise = require("sandbox/modules/raise")
@@ -72,7 +73,7 @@ function sandbox_core_package_repository.repositories(is_global)
-- add main global xmake repository
local repositories = {}
- if is_global then
+ if is_global and global.get("network") ~= "private" then
-- import fasturl
import("net.fasturl")