aedi: store path to patch directory in build state

This commit is contained in:
alexey.lysiuk 2021-06-20 14:45:22 +03:00
parent 2a21f052f0
commit 9393c0559e
1 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ class BuildState:
self.bin_path = self.prefix_path + 'bin' + os.sep
self.include_path = self.prefix_path + 'include' + os.sep
self.lib_path = self.prefix_path + 'lib' + os.sep
self.patch_path = self.root_path + 'patch' + os.sep
self.source_path = self.root_path + 'source' + os.sep
self.source = None
@ -163,7 +164,7 @@ class BuildState:
return first_path_component, extract_path
def _apply_source_patch(self, extract_path: str, patch: str):
patch_path = f'{self.root_path}patch/{patch}.diff'
patch_path = self.patch_path + patch + '.diff'
assert os.path.exists(patch_path)