Skip to content

Commit

Permalink
Patched QtIFW low level isPingable, so it works in more (all?) contexts.
Browse files Browse the repository at this point in the history
  • Loading branch information
BuvinJ committed Jan 15, 2021
1 parent ada03b7 commit e5347aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distbuilder/qt_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2426,12 +2426,12 @@ def _genLib( self ):
TAB + 'var pingCmd = "' +
('echo off && ping -n " + pings + " ' +
'-w " + ((1000 * totalMaxSecs)/pings) + " " +'
'uri + " | find \\"TTL\\" > nul && ' + # see https://ss64.com/nt/ping.html
'uri + " | findstr /r /c:\\"[0-9] *ms\\" > nul && ' + # see https://ss64.com/nt/ping.html
'echo " + successOutput +"\\n"' # regarding test for success
if IS_WINDOWS else
'ping -n " + pings + " ' + # TODO: check syntax in NIX/MAC
'-w " + totalMaxSecs + " " +' + # see https://linux.die.net/man/8/ping
'uri + " | grep \\"TTL\\" > nul && ' +
'uri + " | grep \\"TTL\\" > nul && ' + # align this grep with the Windows regex findstr above!
'echo " + successOutput' ) + END +
TAB + 'var result = installer.execute( ' +
('"cmd.exe", ["/k"], pingCmd' if IS_WINDOWS else
Expand Down

0 comments on commit e5347aa

Please sign in to comment.