def METHOD_NAME(self, package=None):
    """
    Resolve the `build`, `debuginfo`, `publish` and `useforbuild` flags
    and return their values for each repository and build arch.
    :returns: {(repo_name, repo_buildarch): {flag_name: bool} for all available repos
    """
    result = {}
    # TODO: avoid calling get_repos_of_project(), use self.root instead
    for repo in osc_core.get_repos_of_project(self.apiurl, self.root.attrib["name"]):
        result[(repo.name, repo.arch)] = self.REPOSITORY_FLAGS_TEMPLATE.copy()
    self._update_repository_flags(result, self.root)
    if package:
        m = osc_core.show_package_meta(self.apiurl, self.root.attrib["name"], package)
        root = ET.fromstring(b''.join(m))
        self._update_repository_flags(result, root)
    return result