From 87308fe638fc9a7da3e8d90e40a375f7ca562136 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 20 Jul 2024 00:47:57 +0800 Subject: improve find_pacman --- xmake/modules/detect/tools/find_pacman.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xmake/modules/detect/tools/find_pacman.lua b/xmake/modules/detect/tools/find_pacman.lua index f1c80ee58..8dceccb6c 100644 --- a/xmake/modules/detect/tools/find_pacman.lua +++ b/xmake/modules/detect/tools/find_pacman.lua @@ -36,19 +36,11 @@ import("lib.detect.find_programver") -- @endcode -- function main(opt) - - -- init options opt = opt or {} - - -- find program local program = find_program(opt.program or "pacman", opt) - - -- find program version local version = nil if program and opt and opt.version then version = find_programver(program, opt) end - - -- ok? return program, version end -- cgit v1.3.1