On systems where 'python' refers to python3, redo failed to launch. All invocations of python have been made explicitly python2 invocations. All tests pass on an Arch Linux system as of this commit.
16 lines
512 B
Python
Executable file
16 lines
512 B
Python
Executable file
#!/usr/bin/env python2
|
|
import sys, os, sqlite3
|
|
|
|
if "DO_BUILT" in os.environ:
|
|
sys.exit(0)
|
|
|
|
sys.stderr.write("Flushing redo cache...\n")
|
|
|
|
db_file = os.path.join(os.environ["REDO_BASE"], ".redo/db.sqlite3")
|
|
db = sqlite3.connect(db_file, timeout=5000)
|
|
|
|
db.executescript("pragma synchronous = off;"
|
|
"update Files set checked_runid=checked_runid-1, "
|
|
" changed_runid=changed_runid-1, "
|
|
" failed_runid=failed_runid-1;")
|
|
db.commit()
|