def get_installed_state(m, packages):
 cmd = get_cmd(m, 'search')
 cmd.extend(['--match-exact', '--details', '--installed-only'])
 cmd.extend(packages)
 return parse_zypper_xml(m, cmd, fail_not_found=False)[0]

def get_installed_state ( m , packages ) : cmd = get_cmd ( m , 'search' ) cmd . extend ( [ '--match-exact' , '--details' , '--installed-only' ] ) cmd . extend ( packages ) return parse_zypper_xml ( m , cmd , fail_not_found = False ) [ 0 ]
get installed state of packages .