def fetch_new_dependencies(repository, workdir=None):
    if repository.has_key('branch'):
        branch = repository['branch']
    else:
        if workdir:
            branch = retrieve_current_branch(repository_directory=workdir, fix_environment=True)
        else:
            branch = retrieve_current_branch()
    repo = fetch_repository(
        repository=repository['url'], branch=branch
    )
    #FIXME: This should not be hardcoded
    project_pattern = repository['package_name'] % "%s-[0-9]*"
    
    deps = get_new_dependencies(repo, accepted_tag_pattern=project_pattern, branch=branch)

    return deps
dataset/ETHPy150Open ella/citools/citools/debian/commands.py/fetch_new_dependencies/swapped operands of `%`