summaryrefslogtreecommitdiff
path: root/xmake/actions/require/install.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-01 19:13:33 +0800
committerruki <[email protected]>2020-11-01 19:13:33 +0800
commit08d63614f1769ff53ba862ae82715be8c95c9bff (patch)
treeea95e1cc0b6f02377b5683cef15aa0ebb28842ec /xmake/actions/require/install.lua
parent51c400a113bd4315a96ad36b7548fd6817cf52b5 (diff)
improve xrepo tips
Diffstat (limited to 'xmake/actions/require/install.lua')
-rw-r--r--xmake/actions/require/install.lua6
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