'Initializes the base command and the yum package repository.'

def __init__(self):

    super(YumBackend, self).__init__()
    executable = os_dep.command('yum')
    base_arguments = '-y'
    self.base_command = ((executable + '    ') + base_arguments)
    self.repo_file_path = '/etc/yum.repos.d/autotest.repo'
    self.cfgparser = ConfigParser.ConfigParser()
    self.cfgparser.read(self.repo_file_path)
    y_cmd = (executable + '    --version    |    head    -1')
    cmd_result = utils.run(y_cmd, ignore_status=True, verbose=False)
    out = cmd_result.stdout.strip()
    try:
        ver = re.findall('\\d*.\\d*.\\d*', out)[0]
    except IndexError:
        ver = out
    self.pm_version = ver
    logging.debug(('Yum    version:    %s' % self.pm_version))
    if HAS_YUM_MODULE:
        self.yum_base = yum.YumBase()
    else:
        self.yum_base = None
        logging.error('yum    module    for    Python    is    required.    Using    the    basic    support    from    rpm    and    yum    commands')
