Skip to content

Commit

Permalink
improve find_pacman
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jul 19, 2024
1 parent 3a8ad70 commit 87308fe
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions xmake/modules/detect/tools/find_pacman.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 87308fe

Please sign in to comment.