#NEWLINE# def ensure_latest_manifest( ) : #NEWLINE# #INDENT# '\n    returns False/fail if updated. (so you can use as an error code)\n    ' #NEWLINE# if ( not in_servi_code_dir ( ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# m_old_manifest = Manifest ( c . TEMPLATE , load = True ) #NEWLINE# #UNINDENT# except FileNotFoundError : #NEWLINE# #INDENT# m_old_manifest = None #NEWLINE# #UNINDENT# m_template_fresh = Manifest ( c . TEMPLATE ) #NEWLINE# if Manifest . equal_files ( m_old_manifest , m_template_fresh ) : #NEWLINE# #INDENT# info ( 'Update Manifest: Skipping (Template directory has not changed)' ) #NEWLINE# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# m_template_fresh . save ( ) #NEWLINE# bump ( PATCH ) #NEWLINE# info ( 'Update Manifest: New manifest of the current template directory saved to: {0}' . format ( m_template_fresh . fname ) ) #NEWLINE# return False