def METHOD_NAME(repos, reponame, rw, ro):
    "Does this repository need to be updated?"
    if reponame not in repos:
        # unknown repository: create
        return True
    else:
        # do we need to update?
        ro0,rw0 = repos[reponame]
        if ro != ro0 or rw != rw0:
            return True
    return False