#NEWLINE# def print_search( self , info , pattern = None , verbose = False , extra_verbose = False ) : #NEWLINE# #INDENT# ' Print all the exported conans information\n        param pattern: wildcards, e.g., "opencv/*"\n        ' #NEWLINE# if ( not info ) : #NEWLINE# #INDENT# warn_msg = 'There are no packages' #NEWLINE# pattern_msg = ( ' matching the %s pattern' % pattern ) #NEWLINE# self . _out . info ( ( ( warn_msg + pattern_msg ) if pattern else warn_msg ) ) #NEWLINE# return #NEWLINE# #UNINDENT# self . _out . info ( 'Existing packages info:\n' ) #NEWLINE# for ( conan_ref , packages ) in sorted ( info . items ( ) ) : #NEWLINE# #INDENT# self . _print_colored_line ( str ( conan_ref ) , indent = 0 ) #NEWLINE# if ( extra_verbose or verbose ) : #NEWLINE# #INDENT# if ( not packages ) : #NEWLINE# #INDENT# self . _out . writeln ( '    There are no packages' , Color . RED ) #NEWLINE# #UNINDENT# for ( package_id , conan_info ) in packages . items ( ) : #NEWLINE# #INDENT# self . _print_colored_line ( 'Package_ID' , package_id , 1 ) #NEWLINE# if extra_verbose : #NEWLINE# #INDENT# if conan_info . options : #NEWLINE# #INDENT# self . _print_colored_line ( '[options]' , indent = 2 ) #NEWLINE# for option in conan_info . options . dumps ( ) . splitlines ( ) : #NEWLINE# #INDENT# self . _print_colored_line ( option , indent = 3 ) #NEWLINE# #UNINDENT# #UNINDENT# if conan_info . settings : #NEWLINE# #INDENT# self . _print_colored_line ( '[settings]' , indent = 2 ) #NEWLINE# for settings in conan_info . settings . dumps ( ) . splitlines ( ) : #NEWLINE# #INDENT# self . _print_colored_line ( settings , indent = 3 ) #NEWLINE# #UNINDENT# #UNINDENT# if conan_info . requires : #NEWLINE# #INDENT# self . _print_colored_line ( '[requirements]' , indent = 2 ) #NEWLINE# for name in conan_info . requires . dumps ( ) . splitlines ( ) : #NEWLINE# #INDENT# self . _print_colored_line ( str ( name ) , indent = 3 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if conan_info . settings : #NEWLINE# #INDENT# settings_line = [ values [ 1 ] for values in [ setting . split ( '=' ) for setting in conan_info . settings . dumps ( ) . splitlines ( ) ] ] #NEWLINE# settings_line = ( '(%s)' % ', ' . join ( settings_line ) ) #NEWLINE# self . _print_colored_line ( packages , indent = 3 )