'Reads options from the Koji configuration file
By default it checks if the koji configuration is valid
:type check_valid: boolean
:param check_valid: whether to include a check on the configuration
:raise: ValueError
:return: None'

def read_config(self, check_is_valid=True):

    if check_is_valid:
        if (not self.is_config_valid()):
            raise ValueError(('Koji    config    "%s"    is    not    valid' % self.config))
    config = ConfigParser.ConfigParser()
    config.read(self.config)
    basename = os.path.basename(self.command)
    for (name, value) in config.items(basename):
        self.config_options[name] = value
