Extract .redo dir state management stuff into its own file.
In preparation for changing the on-disk format eventually, as well as making the main code more readable.
This commit is contained in:
parent
81356931a4
commit
dc3efb69cc
5 changed files with 158 additions and 97 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
import sys, os
|
||||
import vars
|
||||
from helpers import err, add_dep, mkdirp
|
||||
import vars, state
|
||||
from helpers import err, mkdirp
|
||||
|
||||
|
||||
if not vars.TARGET:
|
||||
|
|
@ -15,6 +15,6 @@ try:
|
|||
err('redo-ifcreate: error: %r already exists\n' % t)
|
||||
sys.exit(1)
|
||||
else:
|
||||
add_dep(vars.TARGET, 'c', t)
|
||||
state.add_dep(vars.TARGET, 'c', t)
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(200)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue