File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,9 @@ local check_binary_installed = function(pkg)
211211 if handle then
212212 binary_version = handle :read (" *a" )
213213 handle :close ()
214- if
214+ if binary_version :lower ():find (" built from source" ) then
215+ return true , binary_version , needed
216+ elseif
215217 binary_version :lower ():find (" illegal" )
216218 or binary_version :lower ():find (" unknown" )
217219 or binary_version :lower ():find (" invalid" )
@@ -250,17 +252,15 @@ M.check = function()
250252 end
251253 end
252254 else
253- if version ~= " not needed" then
254- version = version == " " and " (unknown)" or version
255- local eol = version :find (" \n " )
256- if eol == nil then
257- version = " (unknown)"
258- else
259- version = version :sub (0 , eol - 1 )
260- end
261- local ok_msg = string.format (" %s: found! version: `%s`" , pkg .name , version )
262- report_ok (ok_msg )
255+ version = version == " " and " (unknown)" or version
256+ local eol = version :find (" \n " )
257+ if eol == nil then
258+ version = " (unknown)"
259+ else
260+ version = version :sub (0 , eol - 1 )
263261 end
262+ local ok_msg = string.format (" %s: found! version: `%s`" , pkg .name , version )
263+ report_ok (ok_msg )
264264 end
265265 end
266266 end
You can’t perform that action at this time.
0 commit comments