def _print_summary(self):
    all_subprojects = collections.OrderedDict()
    for (name, subp) in sorted(self.subprojects.items()):
        value = subp.found()
        if subp.disabled_feature:
            value = [value, 'Feature {!r} disabled'.format(subp.disabled_feature)]
        elif subp.exception:
            value = [value, str(subp.exception)]
        elif (subp.warnings > 0):
            value = [value, '{} warnings'.format(subp.warnings)]
        all_subprojects[name] = value
    if all_subprojects:
        self.summary_impl('Subprojects', all_subprojects, {'bool_yn': True, 'list_sep': ' '})
    mlog.log('')
    main_summary = self.summary.pop('', None)
    for (_, summary) in sorted(self.summary.items()):
        summary.dump()
    if main_summary:
        main_summary.dump()
def _print_summary(self):
    all_subprojects = collections.OrderedDict()
    for (name, subp) in sorted(self.subprojects.items()):
        value = subp.found()
        if subp.disabled_feature:
            value = [value, 'Feature {!r} disabled'.format(subp.disabled_feature)]
        elif subp.exception:
            value = [value, str(subp.exception)]
        elif (subp.warnings > 0):
            value = [value, '{} warnings'.format(subp.warnings)]
        all_subprojects[name] = value
    if all_subprojects:
        self.summary_impl('Subprojects', all_subprojects, {'bool_yn': True, 'list_sep': ' '})
    mlog.log()
    main_summary = self.summary.pop(, None)
    for (_, summary) in sorted(self.summary.items()):
        summary.dump()
    if main_summary:
        main_summary.dump()