MCPcopy
hub / github.com/apenwarr/redo / set_failed

Method set_failed

redo/state.py:319–334  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

317 self.is_override = False
318
319 def set_failed(self):
320 debug2('FAILED: %r\n' % self.name)
321 self.update_stamp()
322 self.failed_runid = env.v.RUNID
323 if self.stamp != STAMP_MISSING:
324 # if we failed and the target file still exists,
325 # then we're generated.
326 self.is_generated = True
327 else:
328 # if the target file now does *not* exist, then go back to
329 # treating this as a source file. Since it doesn't exist,
330 # if someone tries to rebuild it immediately, it'll go
331 # back to being a target. But if the file is manually
332 # created before that, we don't need a "manual override"
333 # warning.
334 self.is_generated = False
335
336 def set_static(self):
337 self.update_stamp(must_exist=True)

Callers 2

_start_selfMethod · 0.80
_record_new_stateMethod · 0.80

Calls 2

update_stampMethod · 0.95
debug2Function · 0.85

Tested by

no test coverage detected