diff options
| author | ruki <[email protected]> | 2018-09-29 20:57:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-29 20:57:24 +0800 |
| commit | e2cb95d8d86a27fc401667ddad70af7c81bcb0fc (patch) | |
| tree | 0a8bfd26e761a8401d7ae4892b13d28ffae242ce /xmake/actions/require/package.lua | |
| parent | 27294139797b23f90c3b46b860836f39a37d0e97 (diff) | |
modify install directory of package
Diffstat (limited to 'xmake/actions/require/package.lua')
| -rw-r--r-- | xmake/actions/require/package.lua | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
