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:
Avery Pennarun 2010-12-11 23:00:53 -08:00
commit e6f95521ae
6 changed files with 26 additions and 7 deletions

View file

@ -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()