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.
18 lines
430 B
Python
Executable file
18 lines
430 B
Python
Executable file
#!/usr/bin/env python2
|
|
import sys, os
|
|
import vars, state
|
|
from log import err
|
|
|
|
|
|
try:
|
|
me = os.path.join(vars.STARTDIR,
|
|
os.path.join(vars.PWD, vars.TARGET))
|
|
f = state.File(name=me)
|
|
f.add_dep('m', state.ALWAYS)
|
|
always = state.File(name=state.ALWAYS)
|
|
always.stamp = state.STAMP_MISSING
|
|
always.set_changed()
|
|
always.save()
|
|
state.commit()
|
|
except KeyboardInterrupt:
|
|
sys.exit(200)
|