From: Magnus Hagander Date: Thu, 3 Mar 2016 11:56:09 +0000 (+0100) Subject: Remove fromonly file as well upon completed reparsing X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=cd10ba36ee2c88ff8276200c1d3f931e3dd6fa26;p=pgarchives.git Remove fromonly file as well upon completed reparsing If it's empty only, same as with the diffs --- diff --git a/loader/reparse_message.py b/loader/reparse_message.py index e66cc7a..519ab0f 100755 --- a/loader/reparse_message.py +++ b/loader/reparse_message.py @@ -119,6 +119,9 @@ if __name__ == "__main__": f.close() if os.path.getsize('reparse.diffs') == 0: os.unlink('reparse.diffs') + if os.path.getsize('reparse.fromonly') == 0: + os.unlink('reparse.fromonly') + # Just in case conn.rollback() conn.close()