Remove fromonly file as well upon completed reparsing
authorMagnus Hagander <magnus@hagander.net>
Thu, 3 Mar 2016 11:56:09 +0000 (12:56 +0100)
committerMagnus Hagander <magnus@hagander.net>
Thu, 3 Mar 2016 11:56:09 +0000 (12:56 +0100)
If it's empty only, same as with the diffs

loader/reparse_message.py

index e66cc7a96067eb4fd83f4a10d7c04710036cb657..519ab0fcd9d98a8851e9806c1ba5069ddc045ff8 100755 (executable)
@@ -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()