Apply a patch from the current recipe directory into the current build directory. .. versionchanged:: 0.6.0 Add ability to apply patch from any dir via kwarg `build_dir`'''
(self, filename, arch, build_dir=None)
| 280 | return target |
| 281 | |
| 282 | def apply_patch(self, filename, arch, build_dir=None): |
| 283 | """ |
| 284 | Apply a patch from the current recipe directory into the current |
| 285 | build directory. |
| 286 | |
| 287 | .. versionchanged:: 0.6.0 |
| 288 | Add ability to apply patch from any dir via kwarg `build_dir`''' |
| 289 | """ |
| 290 | info("Applying patch {}".format(filename)) |
| 291 | build_dir = build_dir if build_dir else self.get_build_dir(arch) |
| 292 | filename = join(self.get_recipe_dir(), filename) |
| 293 | shprint(sh.patch, "-t", "-d", build_dir, "-p1", |
| 294 | "-i", filename, _tail=10) |
| 295 | |
| 296 | def copy_file(self, filename, dest): |
| 297 | info("Copy {} to {}".format(filename, dest)) |
no test coverage detected