summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-14 00:00:11 +0800
committerruki <[email protected]>2019-03-13 18:01:09 +0800
commit40967ae34bd451f501f3bb80bcff95801a7239b3 (patch)
treeee93a787c651c475538315d89420acb61f2804bd
parent6a47a2a4a1ed124fa40c398b1982de38978685fc (diff)
force install package
-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