redo-always/redo-ifcreate/redo-stamp: work inside chdir().
If someone cd's to another directory and then runs redo-always, we weren't adding to the right target.
This commit is contained in:
parent
caea093519
commit
e6f95521ae
6 changed files with 26 additions and 7 deletions
|
|
@ -5,8 +5,10 @@ from log import err
|
|||
|
||||
|
||||
try:
|
||||
me = state.File(name=vars.TARGET)
|
||||
me.add_dep('m', state.ALWAYS)
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue