diff options
| author | ruki <[email protected]> | 2019-03-13 00:48:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-12 22:51:19 +0800 |
| commit | e2282fc82dd6e9a51b97dde2252f48aaa39342eb (patch) | |
| tree | 5741a692ddc13ef91088d5f4ff6ccf0520b4aefc | |
| parent | 3adab129b48127a94c52397139da9bd3729b5288 (diff) | |
fix xmake repo add
| -rw-r--r-- | xmake/core/package/repository.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xmake/core/package/repository.lua b/xmake/core/package/repository.lua index 7c28b1b9a..9f10153a0 100644 --- a/xmake/core/package/repository.lua +++ b/xmake/core/package/repository.lua @@ -244,7 +244,8 @@ function repository.add(name, url, branch, is_global) repository._cache(is_global):set("repositories", repositories) -- flush it - return repository._cache(is_global):flush() + repository._cache(is_global):flush() + return true end -- remove repository from gobal or local directory @@ -263,7 +264,8 @@ function repository.remove(name, is_global) repository._cache(is_global):set("repositories", repositories) -- flush it - return repository._cache(is_global):flush() + repository._cache(is_global):flush() + return true end -- clear all repositories @@ -273,7 +275,8 @@ function repository.clear(is_global) repository._cache(is_global):set("repositories", {}) -- flush it - return repository._cache(is_global):flush() + repository._cache(is_global):flush() + return true end |
