From d2c2baddcbccb4e305db563f6101ce6da47d3864 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 20 Apr 2024 00:27:14 +0800 Subject: fix pacman install package --- xmake/modules/package/manager/pacman/install_package.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1