Set the options to the repo.

def _set_repo_options(repo, options):
    '''
    Set the options to the repo.
    '''
    delimiters = "[", "]"
    pattern = '|'.join(map(re.escape, delimiters))
    for option in options:
        splitted = re.split(pattern, option)
        for opt in splitted:
            _set_repo_option(repo, opt)