def _all_repo_priorities_same(allrepos):
    """ Are all repos at the same priority """
    first = None
    for repo in allrepos:
        if first is None:
            first = repo.priority
        elif first != repo.priority:
            return False
    return True