diff options
| author | ruki <[email protected]> | 2023-03-05 20:12:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-03-05 20:13:41 +0800 |
| commit | 70f1a5ff1850f8138759500295702eb2541c227b (patch) | |
| tree | 2addc24579fc82db1d8f6e668da813668db7c506 /xmake/core/package/package.lua | |
| parent | 15de8acc90a9fafc3a1e6dad0af1a81a68052769 (diff) | |
improve package.load_from_repository
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index c0b60d289..95c609951 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -2445,7 +2445,7 @@ function package.load_from_project(packagename, project) end -- load the package from the package directory or package description file -function package.load_from_repository(packagename, repo, packagedir, opt) +function package.load_from_repository(packagename, packagedir, opt) -- get it directly from cache first opt = opt or {} @@ -2454,7 +2454,8 @@ function package.load_from_repository(packagename, repo, packagedir, opt) return instance end - -- load repository first for checking the xmake minimal version + -- load repository first for checking the xmake minimal version (deprecated) + local repo = opt.repo if repo then repo:load() end |
