summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-05-09 00:28:40 +0800
committerruki <[email protected]>2024-05-09 00:28:40 +0800
commitefc618fb9c1156b49bb72dee04b0581e9e7debc8 (patch)
tree690cc1b456dcd97a02c07f8d473a3188c6445821
parentee0a59c41d830cd6f2765269598175198aa19520 (diff)
improve to download packages
-rw-r--r--xmake/modules/private/action/require/download.lua2
-rw-r--r--xmake/modules/private/xrepo/action/download.lua6
2 files changed, 2 insertions, 6 deletions
diff --git a/xmake/modules/private/action/require/download.lua b/xmake/modules/private/action/require/download.lua
index 20fe99553..381adbcf6 100644
--- a/xmake/modules/private/action/require/download.lua
+++ b/xmake/modules/private/action/require/download.lua
@@ -53,7 +53,7 @@ function main(requires_raw)
-- download packages
environment.enter()
- download_packages(requires, {requires_extra = requires_extra})
+ download_packages(requires, {requires_extra = requires_extra, nodeps = true})
environment.leave()
end
diff --git a/xmake/modules/private/xrepo/action/download.lua b/xmake/modules/private/xrepo/action/download.lua
index aa318dd3f..be694c52b 100644
--- a/xmake/modules/private/xrepo/action/download.lua
+++ b/xmake/modules/private/xrepo/action/download.lua
@@ -46,8 +46,7 @@ function menu_options()
"e.g.",
" - xrepo download -p cross --toolchain=mytool --includes='toolchain1.lua" .. path.envsep() .. "toolchain2.lua'"},
{category = "Other Configuration" },
- {nil, "force", "k", nil, "Force to redownload all package dependencies."},
- {nil, "shallow", "k", nil, "Does not download dependent packages."},
+ {nil, "force", "k", nil, "Force to redownload all packages."},
{'o', "outputdir", "kv", "packages","Set the packages download output directory."},
{},
{nil, "packages", "vs", nil, "The packages list.",
@@ -169,9 +168,6 @@ function _download_packages(packages)
if option.get("force") then
table.insert(require_argv, "--force")
end
- if option.get("shallow") then
- table.insert(require_argv, "--shallow")
- end
local outputdir = option.get("outputdir")
if outputdir then
if not path.is_absolute(outputdir) then