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 76caff968..a97df30ca 100644
--- a/xmake/modules/package/manager/pacman/install_package.lua
+++ b/xmake/modules/package/manager/pacman/install_package.lua
@@ -63,7 +63,7 @@ function main(name, opt)
end
-- install package directly if the current user is root
- if is_subhost("msys") or os.isroot() then
+ if is_host("windows") or os.isroot() then
os.vrunv(pacman.program, argv)
-- install with administrator permission?
elseif sudo.has() then