diff options
| author | ruki <[email protected]> | 2017-09-13 00:45:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-12 22:33:12 +0800 |
| commit | eaacab19b023c0c324d733273ae9379f960dbd98 (patch) | |
| tree | abb43dc2e10c27fd8b0d6cf942a8921f6d2dd0b6 | |
| parent | 8931e2912379ab9aa1b585c365af9006dd500d97 (diff) | |
fix fetch order when installing package
| -rw-r--r-- | xmake/actions/require/install.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/require/install.lua b/xmake/actions/require/install.lua index 4078ff5fb..88b03a71f 100644 --- a/xmake/actions/require/install.lua +++ b/xmake/actions/require/install.lua @@ -81,7 +81,7 @@ function _check_missing_packages(packages) -- raise tips if #packages_missing > 0 then - raise("The packages(%s) not found", table.concat(packages_missing, ", ")) + raise("The packages(%s) not found!", table.concat(packages_missing, ", ")) end end @@ -120,7 +120,7 @@ function main(requires) else process.runjobs(function (index) local instance = packages[index] - if instance and #instance:urls() > 0 and not instance:fetch() then + if instance and not instance:fetch() and #instance:urls() > 0 then -- @note fetch first for only system packge table.insert(packages_remote, instance) end end, #packages) |
