diff options
| author | ruki <[email protected]> | 2024-07-20 00:47:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-20 00:47:57 +0800 |
| commit | 87308fe638fc9a7da3e8d90e40a375f7ca562136 (patch) | |
| tree | f25a2446f24b0ade96e97faadbbb6b7d166cc0a7 | |
| parent | 3a8ad70888e14ab6cf91dc6377c1ea6007ee5037 (diff) | |
improve find_pacman
| -rw-r--r-- | xmake/modules/detect/tools/find_pacman.lua | 8 |
1 files changed, 0 insertions, 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 |
