From 227af87c7971216a13df726f7ff08a7c253af700 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 12 Nov 2020 00:35:46 +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 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 -- cgit v1.3.1