redo.py: report when you're trying to rebuild a static file.

In redo-ifchange, this might be a good idea, since you might just want to
set a dependency on it, so we won't say anything from inside builder.py.
But if you're calling redo.py, that means you expect it to be rebuilt, since
there's no other reason to try.  So print a warning.

(This is what make does, more or less.)
This commit is contained in:
Avery Pennarun 2010-12-11 21:19:15 -08:00
commit 1cb000ece1
3 changed files with 13 additions and 5 deletions

View file

@ -10,14 +10,11 @@ import vars, state, builder, jwack
from helpers import unlink
from log import debug, debug2, err
def _nice(t):
return state.relpath(os.path.join(vars.BASE, t), vars.STARTDIR)
CLEAN = 0
DIRTY = 1
def dirty_deps(f, depth, max_changed):
if vars.DEBUG >= 1:
debug('%s?%s\n' % (depth, _nice(f.name)))
debug('%s?%s\n' % (depth, f.nicename()))
if f.failed_runid:
debug('%s-- DIRTY (failed last time)\n' % depth)