@@ -586,7 +586,8 @@ def _install_widevine_arm(self): # pylint: disable=too-many-statements
586586 return ''
587587 required_diskspace = int (arm_device ['filesize' ]) + int (arm_device ['zipfilesize' ])
588588 if yesno_dialog (localize (30001 ), # Due to distributing issues, this takes a long time
589- localize (30006 , diskspace = self ._sizeof_fmt (required_diskspace ))) and self ._widevine_eula ():
589+ localize (30006 , diskspace = self ._sizeof_fmt (required_diskspace )),
590+ autoanswer = True ) and self ._widevine_eula ():
590591 if system_os () != 'Linux' :
591592 ok_dialog (localize (30004 ), localize (30019 , os = system_os ()))
592593 return False
@@ -614,7 +615,7 @@ def _install_widevine_arm(self): # pylint: disable=too-many-statements
614615
615616 if os .getuid () != 0 and not yesno_dialog (localize (30001 ), # Ask for permission to run cmds as root
616617 localize (30030 , cmds = ', ' .join (root_cmds )),
617- nolabel = localize (30028 ), yeslabel = localize (30027 )):
618+ nolabel = localize (30028 ), yeslabel = localize (30027 ), autoanswer = True ):
618619 return False
619620
620621 # Clean up any remaining mounts
@@ -720,7 +721,7 @@ def _update_widevine(self):
720721
721722 if LooseVersion (latest_version ) > LooseVersion (current_version ):
722723 log ('There is an update available for {component}' , component = component )
723- if yesno_dialog (localize (30040 ), localize (30033 ), nolabel = localize (30028 ), yeslabel = localize (30034 )):
724+ if yesno_dialog (localize (30040 ), localize (30033 ), nolabel = localize (30028 ), yeslabel = localize (30034 ), autoanswer = True ):
724725 self .install_widevine ()
725726 else :
726727 log ('User declined to update {component}.' , component = component )
@@ -745,7 +746,7 @@ def _widevine_eula(self):
745746 with archive .open (config .WIDEVINE_LICENSE_FILE ) as file_obj :
746747 eula = file_obj .read ().decode ().strip ().replace ('\n ' , ' ' )
747748
748- return yesno_dialog (localize (30026 ), eula , nolabel = localize (30028 ), yeslabel = localize (30027 )) # Widevine CDM EULA
749+ return yesno_dialog (localize (30026 ), eula , nolabel = localize (30028 ), yeslabel = localize (30027 ), autoanswer = True ) # Widevine CDM EULA
749750
750751 def _extract_widevine_from_img (self ):
751752 ''' Extract the Widevine CDM binary from the mounted Chrome OS image '''
@@ -887,7 +888,7 @@ def _check_drm(self):
887888 if self ._has_widevine ():
888889 return self ._check_widevine ()
889890
890- if yesno_dialog (localize (30041 ), localize (30002 ), nolabel = localize (30028 ), yeslabel = localize (30038 )): # Widevine required
891+ if yesno_dialog (localize (30041 ), localize (30002 ), nolabel = localize (30028 ), yeslabel = localize (30038 ), autoanswer = True ): # Widevine required
891892 return self .install_widevine ()
892893
893894 return False
0 commit comments