Lines Matching refs:patch
25 """Patch class for hb_internal.build --patch parameter
26 Install the patch based on the configuration file.
31 self.patch_cfg = os.path.join(self.config.product_path, 'patch.yml')
37 reverse (bool, optional): True if the patch is rolled back,
46 # Try to update patch cache and check whether rollback is required
52 'which "--patch" parameter needs', '0020')
59 """Run the patch installation command.
62 src_path (string): Path to which the patch needs to be installed
64 reverse (bool, optional): True if the patch is rolled back,
73 raise OHOSException(f'{src_path} not exist, stop applying patch', '0021')
82 raise OHOSException(f'patch {patch_item} not exist for {src_path}, '
83 'stop applying patch', '0022')
85 cmd = f'patch -p1 -R < {patch_path}'
87 cmd = f'patch -p1 < {patch_path}'
92 # Failed to roll back the patch, clear patch cache
97 """Try to update patch cache and Check whether rollback is required
99 otherwise roll back patch.
101 # patch_cache stores the configuration file of the last patch.
104 # Update patch cache to current path configuration file path
109 patch = Patch()
110 patch.patch_make()