def ManageBinaries(config=None, token=None):
 print '\nStep 4: Installing template package and repackaging clients with new configuration.'
 pack_templates = False
 download_templates = False
 if flags.FLAGS.noprompt:
  if (not flags.FLAGS.no_templates_download):
   download_templates = pack_templates = True
 else:
  if ((raw_input('Download client templates? You can skip this if templates are already installed.[Yn]: ').upper() or 'Y') == 'Y'):
   download_templates = True
  if ((raw_input('Repack client templates?[Yn]: ').upper() or 'Y') == 'Y'):
   pack_templates = True
 if download_templates:
  InstallTemplatePackage()
 if pack_templates:
  repacking.TemplateRepacker().RepackAllTemplates(upload=True, token=token)
  print '\nStep 5: Signing and uploading client components.'
  maintenance_utils.SignAllComponents(token=token)
 print '\nInitialization complete, writing configuration.'
 config.Write()
 print 'Please restart the service for it to take effect.\n\n'

def ManageBinaries ( config = None , token = None ) : print '\nStep 4: Installing template package and repackaging clients with new configuration.' pack_templates = False download_templates = False if flags . FLAGS . noprompt : if ( not flags . FLAGS . no_templates_download ) : download_templates = pack_templates = True else : if ( ( raw_input ( 'Download client templates? You can skip this if templates are already installed.[Yn]: ' ) . upper ( ) or 'Y' ) == 'Y' ) : download_templates = True if ( ( raw_input ( 'Repack client templates?[Yn]: ' ) . upper ( ) or 'Y' ) == 'Y' ) : pack_templates = True if download_templates : InstallTemplatePackage ( ) if pack_templates : repacking . TemplateRepacker ( ) . RepackAllTemplates ( upload = True , token = token ) print '\nStep 5: Signing and uploading client components.' maintenance_utils . SignAllComponents ( token = token ) print '\nInitialization complete, writing configuration.' config . Write ( ) print 'Please restart the service for it to take effect.\n\n'
repack templates into installers .