File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 15
15
from . import system
16
16
from . import utils
17
17
18
- def check_wineserver (app : App ):
18
+ def check_wineserver (app : App ) -> bool :
19
19
# FIXME: if the wine version changes, we may need to restart the wineserver
20
20
# (or at least kill it). Gotten into several states in dev where this happend
21
21
# Normally when an msi install failed
@@ -24,6 +24,9 @@ def check_wineserver(app: App):
24
24
if not process :
25
25
logging .debug ("Failed to spawn wineserver to check it" )
26
26
return False
27
+ # We already check the return code in run_wine_during_install.
28
+ # If there is a non-zero exit code subprocess.CalledProcessError will be raised
29
+ return True
27
30
except subprocess .CalledProcessError :
28
31
return False
29
32
@@ -631,7 +634,10 @@ def run_wine_during_install(
631
634
additional_wine_dll_overrides = additional_wine_dll_overrides
632
635
)
633
636
if process :
634
- full_command_string = f"{ wine_binary } { exe } { " " .join (exe_args )} "
637
+ if exe :
638
+ full_command_string = f"{ wine_binary } { exe } { " " .join (exe_args )} "
639
+ else :
640
+ full_command_string = f"{ wine_binary } { " " .join (exe_args )} "
635
641
logging .debug (f"Waiting on: { full_command_string } " )
636
642
process .wait ()
637
643
logging .debug (f"Wine process { full_command_string } "
You can’t perform that action at this time.
0 commit comments