diff options
| author | ruki <[email protected]> | 2020-11-01 19:13:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-01 19:13:33 +0800 |
| commit | 08d63614f1769ff53ba862ae82715be8c95c9bff (patch) | |
| tree | ea95e1cc0b6f02377b5683cef15aa0ebb28842ec /xmake/actions/require/install.lua | |
| parent | 51c400a113bd4315a96ad36b7548fd6817cf52b5 (diff) | |
improve xrepo tips
Diffstat (limited to 'xmake/actions/require/install.lua')
| -rw-r--r-- | xmake/actions/require/install.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/actions/require/install.lua b/xmake/actions/require/install.lua index 13e2d7d47..240129742 100644 --- a/xmake/actions/require/install.lua +++ b/xmake/actions/require/install.lua @@ -126,7 +126,11 @@ function _check_missing_packages(packages) -- raise tips if #packages_missing > 0 then - raise("The packages(%s) not found!", table.concat(packages_missing, ", ")) + local cmd = "xmake repo -u" + if os.getenv("XREPO_WORKING") then + cmd = "xrepo update-repo" + end + raise("The packages(%s) not found, please run `%s` first!", table.concat(packages_missing, ", "), cmd) end -- save the optional missing packages |
