def register_file(name, member, path, digest='', conn=None):
 if (conn is None):
  conn = init()
 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))

def register_file ( name , member , path , digest = '' , conn = None ) : if ( conn is None ) : conn = init ( ) 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 ) )
register a file in the package database .