'perform a repoquery'

def repoquery(self):

    if self.ignore_excluders:
        self.tmp_file = tempfile.NamedTemporaryFile()
        with open('/etc/yum.conf', 'r') as file_handler:
            yum_conf_lines = file_handler.readlines()
        yum_conf_lines = [('exclude=' if l.startswith('exclude=') else l) for l in yum_conf_lines]
        with open(self.tmp_file.name, 'w') as file_handler:
            file_handler.writelines(yum_conf_lines)
            file_handler.flush()
    repoquery_cmd = self.build_cmd()
    rval = self._repoquery_cmd(repoquery_cmd, True, 'raw')
    if rval['results']:
        processed_versions = Repoquery.process_versions(rval['results'].strip())
        formatted_versions = self.format_versions(processed_versions)
        rval['package_found'] = True
        rval['versions'] = formatted_versions
        rval['package_name'] = self.name
        if self.verbose:
            rval['raw_versions'] = processed_versions
        else:
            del rval['results']
    else:
        rval['package_found'] = False
    if self.ignore_excluders:
        self.tmp_file.close()
    return rval
