summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-20 00:27:14 +0800
committerruki <[email protected]>2024-04-20 00:27:14 +0800
commitd2c2baddcbccb4e305db563f6101ce6da47d3864 (patch)
tree1d493b38f50c384b92b2f93ab84c6ae3f7b405bb
parent09b1a53d283597f6c19788e8b127ce3ddeb42f31 (diff)
fix pacman install package
-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