(self)
| 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) |
no test coverage detected