def print_nested_info(self, dependency_name):
    message = ['Dependency', mlog.bold(dependency_name), ('not found but it is available in a sub-subproject.\n' + 'To use it in the current project, promote it by going in the project source\nroot and issuing')]
    sprojs = mesonlib.detect_subprojects('subprojects', self.source_root)
    if (dependency_name not in sprojs):
        return
    found = sprojs[dependency_name]
    if (len(found) > 1):
        message.append('one of the following commands:')
    else:
        message.append('the following command:')
    command_templ = '\nmeson wrap promote {}'
    for l in found:
        message.append(mlog.bold(command_templ.format(l[(len(self.source_root) + 1):])))
    mlog.warning(*message, location=self.current_node)
def print_nested_info(self, dependency_name):
    message = ['Dependency', mlog.bold(dependency_name), ('not found but it is available in a sub-subproject.\n' + 'To use it in the current project, promote it by going in the project source\nroot and issuing')]
    sprojs = mesonlib.detect_subprojects('subprojects', self.source_root)
    if (dependency_name not in sprojs):
        return
    found = sprojs[dependency_name]
    if (len(found) > 1):
        message.append('one of the following commands:')
    else:
        message.append('the following command:')
    command_templ = '\nmeson wrap promote {}'
    for l in found:
        message.append(mlog.bold(command_templ.format(l[(len(self.source_root) + 1):])))
    mlog.warning(*message, location=self.current_node)