#NEWLINE# def register_file( name , member , path , digest = '' , conn = None ) : #NEWLINE# #INDENT# '\n    Register a file in the package database\n    ' #NEWLINE# if ( conn is None ) : #NEWLINE# #INDENT# conn = init ( ) #NEWLINE# #UNINDENT# conn . execute ( 'INSERT INTO files VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' , ( name , '{0}/{1}' . format ( path , member . path ) , member . size , member . mode , digest , member . devmajor , member . devminor , member . linkname , member . linkpath , member . uname , member . gname , member . mtime ) )