#NEWLINE# def create_entry_then_archive( args , basedir , filename ) : #NEWLINE# #INDENT# 'run record, then archive, ' #NEWLINE# os . chdir ( basedir ) #NEWLINE# setattr ( args , 'description' , '' ) #NEWLINE# if ( record ( args , filename ) == 0 ) : #NEWLINE# #INDENT# os . chdir ( basedir ) #NEWLINE# return archive ( args , filename ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# LOGGER . error ( ( ( 'Creation of snapshot ' + args . name ) + 'failed.' ) ) #NEWLINE# return 1