From 40967ae34bd451f501f3bb80bcff95801a7239b3 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Mar 2019 00:00:11 +0800 Subject: force install package --- xmake/actions/require/impl/action/install.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xmake/actions/require/impl/action/install.lua b/xmake/actions/require/impl/action/install.lua index f90ed27ae..a032dd7aa 100644 --- a/xmake/actions/require/impl/action/install.lua +++ b/xmake/actions/require/impl/action/install.lua @@ -87,7 +87,7 @@ function main(package) else -- build and install package to the install directory - if not package:manifest_load() then + if option.get("force") or not package:manifest_load() then -- clean install directory first os.tryrm(package:installdir()) @@ -102,10 +102,10 @@ function main(package) -- save the package info to the manifest file package:manifest_save() - end - -- test it - test(package) + -- test it + test(package) + end end end -- cgit v1.3.1