summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/manager/pacman/install_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/pacman/install_package.lua b/xmake/modules/package/manager/pacman/install_package.lua
index 651914581..79f488c45 100644
--- a/xmake/modules/package/manager/pacman/install_package.lua
+++ b/xmake/modules/package/manager/pacman/install_package.lua
@@ -53,7 +53,7 @@ function main(name, opt)
end
-- install package directly if the current user is root
- if os.isroot() then
+ if is_subhost("msys") or os.isroot() then
os.vrunv(pacman.program, argv)
-- install with administrator permission?
elseif sudo.has() then