File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
xmake/core/sandbox/modules/import/core/package Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -114,12 +114,12 @@ function sandbox_core_package_repository.repositories(is_global)
114
114
end
115
115
116
116
-- add artifacts urls
117
- local artifacts_urls = localcache . cache ( " repository " ): get ( " artifacts_urls " )
118
- if not artifacts_urls then
119
- local binary_repo = os.getenv ( " XMAKE_BINARY_REPO " )
120
- if binary_repo then
121
- artifacts_urls = { binary_repo }
122
- else
117
+ local artifacts_urls = os.getenv ( " XMAKE_BINARY_REPO " )
118
+ if artifacts_urls then
119
+ artifacts_urls = { artifacts_urls }
120
+ else
121
+ artifacts_urls = localcache . cache ( " repository " ): get ( " artifacts_urls " )
122
+ if not artifacts_urls then
123
123
artifacts_urls = {" https://github.com/xmake-mirror/build-artifacts.git" ,
124
124
" https://gitlab.com/xmake-mirror/build-artifacts.git" ,
125
125
" https://gitee.com/xmake-mirror/build-artifacts.git" }
@@ -140,12 +140,12 @@ function sandbox_core_package_repository.repositories(is_global)
140
140
end
141
141
142
142
-- add main urls
143
- local mainurls = localcache . cache ( " repository " ): get ( " mainurls " )
144
- if not mainurls then
145
- local mainrepo = os.getenv ( " XMAKE_MAIN_REPO " )
146
- if mainrepo then
147
- mainurls = { mainrepo }
148
- else
143
+ local mainurls = os.getenv ( " XMAKE_MAIN_REPO " )
144
+ if mainurls then
145
+ mainurls = { mainurls }
146
+ else
147
+ mainurls = localcache . cache ( " repository " ): get ( " mainurls " )
148
+ if not mainurls then
149
149
mainurls = {" https://github.com/xmake-io/xmake-repo.git" ,
150
150
" https://gitlab.com/tboox/xmake-repo.git" ,
151
151
" https://gitee.com/tboox/xmake-repo.git" }
You can’t perform that action at this time.
0 commit comments