Ejemplo n.º 1
0
def should_build(t):
    f = state.File(name=t)
    if f.is_failed():
        raise builder.ImmediateReturn(32)
    dirty = deps.isdirty(f, depth = '', max_changed = vars.RUNID,
                         already_checked=[])
    return f.is_generated, dirty==[f] and deps.DIRTY or dirty
Ejemplo n.º 2
0
def should_build(t):
    f = state.File(name=t)
    if f.is_failed():
        raise builder.ImmediateReturn(32)
    status = deps.isdirty(f, depth='', max_changed=vars.RUNID)
    if status == [f]:
        return deps.DIRTY
    else:
        # FIXME: This is really confusing!
        # The status can be any one of deps.CLEAN or deps.DIRTY or
        # a list of targets to build with redo-unlocked.
        return status