diff options
| author | ruki <[email protected]> | 2021-06-02 00:34:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-06-02 00:34:36 +0800 |
| commit | 171780c824fdacef1173f6363c8c173b9906ab9d (patch) | |
| tree | fae13f4c77fe2702a3f905c944615ec357630a44 | |
| parent | 3c1335a5ef10f4f406db3599b1ec8af95da53676 (diff) | |
improve confirm packages
| -rw-r--r-- | xmake/modules/private/action/require/impl/install_packages.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua index 97d0d18ba..8e2c50725 100644 --- a/xmake/modules/private/action/require/impl/install_packages.lua +++ b/xmake/modules/private/action/require/impl/install_packages.lua @@ -122,6 +122,12 @@ function _get_confirm_from_3rd(packages) _g.extpackages_list = extpackages_list end + -- no extpackages? + if #extpackages_list == 0 then + print("no more packages!") + return + end + -- get confirm result local result = utils.confirm({description = function () cprint("${bright color.warning}note: ${clear}select the following 3rd packages") |
