def METHOD_NAME(
    self, *, package_repo: package_repository.PackageRepositoryApt
) -> bool:
    """Install repository configuration.
    1) First check to see if package repo is implied path,
       or "bare repository" config.  This is indicated when no
       path, components, or suites are indicated.
    2) If path is specified, convert path to a suite entry,
       ending with "/".
    Relatedly, this assumes all of the error-checking has been
    done already on the package_repository object in a proper
    fashion, but do some sanity checks here anyways.
    :returns: True if source configuration was changed.
    """
    if (
        not package_repo.path
        and not package_repo.components
        and not package_repo.suites
    ):
        suites = ["/"]
    elif package_repo.path:
        # Suites denoting exact path must end with '/'.
        path = package_repo.path
        if not path.endswith("/"):
            path += "/"
        suites = [path]
    elif package_repo.suites:
        suites = package_repo.suites
        if not package_repo.components:
            raise RuntimeError("no components with suite")
    else:
        raise RuntimeError("no suites or path")
    if package_repo.name:
        name = package_repo.name
    else:
        name = re.sub(r"\W+", "_", package_repo.url)
    return self._install_sources(
        architectures=package_repo.architectures,
        components=package_repo.components,
        formats=package_repo.formats,
        name=name,
        suites=suites,
        url=package_repo.url,
    )