summaryrefslogtreecommitdiff
path: root/xmake/actions/require/impl/action
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-11 22:57:43 +0800
committerruki <[email protected]>2019-03-11 11:46:24 +0800
commit6e4c9f31810a9b5053b2d0b72056fd5552bcd8b4 (patch)
treee7240807f555fd8412823b69d76afe3387e7eb49 /xmake/actions/require/impl/action
parente6b992ae11a7a2fce3239e4e35b19240eff3ccf7 (diff)
save package manifest
Diffstat (limited to 'xmake/actions/require/impl/action')
-rw-r--r--xmake/actions/require/impl/action/install.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/actions/require/impl/action/install.lua b/xmake/actions/require/impl/action/install.lua
index a1026de12..f90ed27ae 100644
--- a/xmake/actions/require/impl/action/install.lua
+++ b/xmake/actions/require/impl/action/install.lua
@@ -87,8 +87,7 @@ function main(package)
else
-- build and install package to the install directory
- local installedfile = path.join(package:installdir(), "installed.txt")
- if not os.isfile(installedfile) then
+ if not package:manifest_load() then
-- clean install directory first
os.tryrm(package:installdir())
@@ -101,8 +100,8 @@ function main(package)
end
end
- -- mark as installed
- io.writefile(installedfile, "")
+ -- save the package info to the manifest file
+ package:manifest_save()
end
-- test it