From 89449b909ceecbbf95abf28f4abede33090d3f6b Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Sat, 13 Nov 2010 01:08:46 -0800 Subject: [PATCH] redo.py: don't add dependencies on files we rebuild. redo-ifchange already does this, and then calls redo.py, so it's redundant. The only weird case is if a .do file calls 'redo' instead of 'redo-ifchange'. I'm not sure what exactly is supposed to happen here. test.do does this, for example, and it works, but only because we always do 'redo test' and nobody depends on 'redo-ifchange test'; if they did, the dependencies would be off, I guess. But maybe it's meaningless to do that anyway. --- redo.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/redo.py b/redo.py index a4cce51..1b2c2bb 100755 --- a/redo.py +++ b/redo.py @@ -117,7 +117,4 @@ startdir = os.getcwd() for t in targets: mkdirp('%s/.redo' % vars.BASE) os.chdir(startdir) - - if vars.TARGET: - add_dep(vars.TARGET, 'm', t) build(t)