Run any pre-build tasks for the Recipe. By default, this checks if any prebuild_archname methods exist for the archname of the current architecture, and runs them if so.
(self, arch)
| 545 | return env |
| 546 | |
| 547 | def prebuild_arch(self, arch): |
| 548 | '''Run any pre-build tasks for the Recipe. By default, this checks if |
| 549 | any prebuild_archname methods exist for the archname of the current |
| 550 | architecture, and runs them if so.''' |
| 551 | prebuild = "prebuild_{}".format(arch.arch.replace('-', '_')) |
| 552 | if hasattr(self, prebuild): |
| 553 | getattr(self, prebuild)() |
| 554 | else: |
| 555 | info('{} has no {}, skipping'.format(self.name, prebuild)) |
| 556 | |
| 557 | def is_patched(self, arch): |
| 558 | build_dir = self.get_build_dir(arch.arch) |