MCPcopy Index your code
hub / github.com/kivy/python-for-android / apply_patch

Method apply_patch

pythonforandroid/recipe.py:282–294  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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))

Callers 5

apply_patchesMethod · 0.95
prebuild_archMethod · 0.80
prebuild_archMethod · 0.80
prebuild_archMethod · 0.80
build_archMethod · 0.80

Calls 4

get_build_dirMethod · 0.95
get_recipe_dirMethod · 0.95
shprintFunction · 0.90
formatMethod · 0.80

Tested by

no test coverage detected