#NEWLINE# def add( self , reference , private = False , override = False ) : #NEWLINE# #INDENT# ' to define requirements by the user in text, prior to any propagation\n        ' #NEWLINE# assert isinstance ( reference , six . string_types ) #NEWLINE# try : #NEWLINE# #INDENT# conan_reference = ConanFileReference . loads ( reference ) #NEWLINE# name = conan_reference . name #NEWLINE# #UNINDENT# except ConanException : #NEWLINE# #INDENT# conan_reference = None #NEWLINE# name = reference #NEWLINE# #UNINDENT# new_requirement = Requirement ( conan_reference , private , override ) #NEWLINE# old_requirement = self . get ( name ) #NEWLINE# if ( old_requirement and ( old_requirement != new_requirement ) ) : #NEWLINE# #INDENT# self . output . warn ( ( 'Duplicated requirement %s != %s' % ( old_requirement , new_requirement ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self [ name ] = new_requirement