From eaacab19b023c0c324d733273ae9379f960dbd98 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 13 Sep 2017 00:45:32 +0800 Subject: fix fetch order when installing package --- xmake/actions/require/install.lua | 4 ++-- 1 file 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) -- cgit v1.3.1