summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/require/impl/action/install.lua8
1 files 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