diff options
| author | ruki <[email protected]> | 2022-10-13 21:00:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-10-13 21:00:19 +0800 |
| commit | 8737561ceb4347207db3fca3146a7dbcee02a9a9 (patch) | |
| tree | 77efe8b6b0b2d8fc9e638f7daffd0f32eefb1771 | |
| parent | 21d532f187a00d4447c48b0c8157c7bc175803e2 (diff) | |
improve logs
| -rw-r--r-- | xmake/modules/private/xrepo/action/clean.lua | 5 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/export.lua | 5 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/fetch.lua | 5 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/import.lua | 5 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/info.lua | 5 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/install.lua | 5 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/remove.lua | 5 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/scan.lua | 5 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/search.lua | 5 |
9 files changed, 9 insertions, 36 deletions
diff --git a/xmake/modules/private/xrepo/action/clean.lua b/xmake/modules/private/xrepo/action/clean.lua index 8a5de5330..efc1ed6a4 100644 --- a/xmake/modules/private/xrepo/action/clean.lua +++ b/xmake/modules/private/xrepo/action/clean.lua @@ -68,11 +68,8 @@ function _clean_packages(packages) -- do configure first local config_argv = {"f", "-c"} - if option.get("verbose") then - table.insert(config_argv, "-v") - end if option.get("diagnosis") then - table.insert(config_argv, "-D") + table.insert(config_argv, "-vD") end os.vrunv("xmake", config_argv) diff --git a/xmake/modules/private/xrepo/action/export.lua b/xmake/modules/private/xrepo/action/export.lua index fb8a006b8..ac6b98594 100644 --- a/xmake/modules/private/xrepo/action/export.lua +++ b/xmake/modules/private/xrepo/action/export.lua @@ -107,11 +107,8 @@ function _export_packages(packages) -- do configure first local config_argv = {"f", "-c", "--require=n"} - if option.get("verbose") then - table.insert(config_argv, "-v") - end if option.get("diagnosis") then - table.insert(config_argv, "-D") + table.insert(config_argv, "-vD") end if option.get("plat") then table.insert(config_argv, "-p") diff --git a/xmake/modules/private/xrepo/action/fetch.lua b/xmake/modules/private/xrepo/action/fetch.lua index 857dd100f..41a14527e 100644 --- a/xmake/modules/private/xrepo/action/fetch.lua +++ b/xmake/modules/private/xrepo/action/fetch.lua @@ -124,11 +124,8 @@ function _fetch_packages(packages) -- do configure first local config_argv = {"f", "-c", "--require=n"} - if option.get("verbose") then - table.insert(config_argv, "-v") - end if option.get("diagnosis") then - table.insert(config_argv, "-D") + table.insert(config_argv, "-vD") end if option.get("plat") then table.insert(config_argv, "-p") diff --git a/xmake/modules/private/xrepo/action/import.lua b/xmake/modules/private/xrepo/action/import.lua index fb7cb15ef..6acb665f6 100644 --- a/xmake/modules/private/xrepo/action/import.lua +++ b/xmake/modules/private/xrepo/action/import.lua @@ -84,11 +84,8 @@ function _import_packages(packages) -- do configure first local config_argv = {"f", "-c"} - if option.get("verbose") then - table.insert(config_argv, "-v") - end if option.get("diagnosis") then - table.insert(config_argv, "-D") + table.insert(config_argv, "-vD") end if option.get("plat") then table.insert(config_argv, "-p") diff --git a/xmake/modules/private/xrepo/action/info.lua b/xmake/modules/private/xrepo/action/info.lua index 4d570da19..bc57716f3 100644 --- a/xmake/modules/private/xrepo/action/info.lua +++ b/xmake/modules/private/xrepo/action/info.lua @@ -77,11 +77,8 @@ function _info_packages(packages) -- do configure first local config_argv = {"f", "-c"} - if option.get("verbose") then - table.insert(config_argv, "-v") - end if option.get("diagnosis") then - table.insert(config_argv, "-D") + table.insert(config_argv, "-vD") end if option.get("plat") then table.insert(config_argv, "-p") diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua index 6064c65e9..547d1326c 100644 --- a/xmake/modules/private/xrepo/action/install.lua +++ b/xmake/modules/private/xrepo/action/install.lua @@ -145,11 +145,8 @@ function _install_packages(packages) -- do configure first local config_argv = {"f", "-c", "--require=n"} - if option.get("verbose") then - table.insert(config_argv, "-v") - end if option.get("diagnosis") then - table.insert(config_argv, "-D") + table.insert(config_argv, "-vD") end if option.get("plat") then table.insert(config_argv, "-p") diff --git a/xmake/modules/private/xrepo/action/remove.lua b/xmake/modules/private/xrepo/action/remove.lua index 122eb0ba9..7b61f9a96 100644 --- a/xmake/modules/private/xrepo/action/remove.lua +++ b/xmake/modules/private/xrepo/action/remove.lua @@ -117,11 +117,8 @@ function _remove_packages(packages) -- do configure first local config_argv = {"f", "-c", "--require=n"} - if option.get("verbose") then - table.insert(config_argv, "-v") - end if option.get("diagnosis") then - table.insert(config_argv, "-D") + table.insert(config_argv, "-vD") end if option.get("plat") then table.insert(config_argv, "-p") diff --git a/xmake/modules/private/xrepo/action/scan.lua b/xmake/modules/private/xrepo/action/scan.lua index 0d279ee44..a156d6c65 100644 --- a/xmake/modules/private/xrepo/action/scan.lua +++ b/xmake/modules/private/xrepo/action/scan.lua @@ -68,11 +68,8 @@ function _scan_packages(packages) -- do configure first local config_argv = {"f", "-c"} - if option.get("verbose") then - table.insert(config_argv, "-v") - end if option.get("diagnosis") then - table.insert(config_argv, "-D") + table.insert(config_argv, "-vD") end os.vrunv("xmake", config_argv) diff --git a/xmake/modules/private/xrepo/action/search.lua b/xmake/modules/private/xrepo/action/search.lua index b9acc8da1..e30cbe01a 100644 --- a/xmake/modules/private/xrepo/action/search.lua +++ b/xmake/modules/private/xrepo/action/search.lua @@ -67,11 +67,8 @@ function _search_packages(packages) -- do configure first local config_argv = {"f", "-c"} - if option.get("verbose") then - table.insert(config_argv, "-v") - end if option.get("diagnosis") then - table.insert(config_argv, "-D") + table.insert(config_argv, "-vD") end os.vrunv("xmake", config_argv) |
