#NEWLINE# def update_with( self , package ) : #NEWLINE# #INDENT# ' Update summary with a package ' #NEWLINE# if ( self . name != package . name ) : #NEWLINE# #INDENT# LOG . error ( "Summary name '%s' doesn't match package name '%s'" , self . name , package . name ) #NEWLINE# return #NEWLINE# #UNINDENT# self . unstable = max ( self . unstable , package . version , key = parse_version ) #NEWLINE# self . last_modified = max ( self . last_modified . replace ( tzinfo = UTC ) , package . last_modified . replace ( tzinfo = UTC ) ) #NEWLINE# if ( not package . is_prerelease ) : #NEWLINE# #INDENT# if ( self . stable is None ) : #NEWLINE# #INDENT# self . stable = package . version #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . stable = max ( self . stable , package . version , key = parse_version )