From e2cb95d8d86a27fc401667ddad70af7c81bcb0fc Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 29 Sep 2018 20:57:24 +0800 Subject: modify install directory of package --- xmake/actions/require/package.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmake/actions/require/package.lua') diff --git a/xmake/actions/require/package.lua b/xmake/actions/require/package.lua index 1b8b943f7..4317845bf 100644 --- a/xmake/actions/require/package.lua +++ b/xmake/actions/require/package.lua @@ -529,7 +529,14 @@ function remove_packages(requires, opt) local packages = {} for _, instance in ipairs(load_packages(requires, opt)) do if os.isfile(instance:prefixfile()) then + + -- uninstall package from the prefix directory action.install.uninstall_prefix(instance) + + -- remove the install files + os.tryrm(instance:installdir()) + + -- remove ok table.insert(packages, instance) end end -- cgit v1.3.1