pub async fn apply_package_patch(
package_key: &str,
pkg_path: &Path,
files: &HashMap<String, PatchFileInfo>,
blobs_path: &Path,
dry_run: bool,
force: bool,
) -> ApplyResultExpand description
Verify and apply patches for a single package.
For each file in files, this function:
- Verifies the file is ready to be patched (or already patched).
- If not dry_run, reads the blob from
blobs_pathand writes it. - Returns a summary of what happened.