diff options
| author | ruki <[email protected]> | 2019-03-14 00:00:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-13 18:01:09 +0800 |
| commit | 40967ae34bd451f501f3bb80bcff95801a7239b3 (patch) | |
| tree | ee93a787c651c475538315d89420acb61f2804bd | |
| parent | 6a47a2a4a1ed124fa40c398b1982de38978685fc (diff) | |
force install package
| -rw-r--r-- | xmake/actions/require/impl/action/install.lua | 8 |
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 |
