def package_update_all(m):
 retvals = {'rc': 0, 'stdout': '', 'stderr': ''}
 if (m.params['type'] == 'patch'):
  cmdname = 'patch'
 else:
  cmdname = 'update'
 cmd = get_cmd(m, cmdname)
 retvals['cmd'] = cmd
 (result, retvals['rc'], retvals['stdout'], retvals['stderr']) = parse_zypper_xml(m, cmd)
 return (result, retvals)

def package_update_all ( m ) : retvals = { 'rc' : 0 , 'stdout' : '' , 'stderr' : '' } if ( m . params [ 'type' ] == 'patch' ) : cmdname = 'patch' else : cmdname = 'update' cmd = get_cmd ( m , cmdname ) retvals [ 'cmd' ] = cmd ( result , retvals [ 'rc' ] , retvals [ 'stdout' ] , retvals [ 'stderr' ] ) = parse_zypper_xml ( m , cmd ) return ( result , retvals )
run update or patch on all available packages .