#NEWLINE# @ retry #NEWLINE# def _generate_index( self , session ) : #NEWLINE# #INDENT# store = storage . load ( ) #NEWLINE# Base . metadata . create_all ( self . _engine ) #NEWLINE# session . add ( Version ( id = self . version ) ) #NEWLINE# for repository in self . _walk_storage ( store = store ) : #NEWLINE# #INDENT# session . add ( Repository ( ** repository ) ) #NEWLINE# #UNINDENT# session . commit ( )