Should perform any necessary test and return True only if it needs building again. Per default we implement a library test, in case that we detect so.
(self, arch)
| 585 | touch(join(build_dir, '.patched')) |
| 586 | |
| 587 | def should_build(self, arch): |
| 588 | '''Should perform any necessary test and return True only if it needs |
| 589 | building again. Per default we implement a library test, in case that |
| 590 | we detect so. |
| 591 | ''' |
| 592 | if self.built_libraries: |
| 593 | return not all( |
| 594 | exists(lib) for lib in self.get_libraries(arch.arch) |
| 595 | ) |
| 596 | return True |
| 597 | |
| 598 | def build_arch(self, arch): |
| 599 | '''Run any build tasks for the Recipe. By default, this checks if |