Skip to main content

apply_package_patch

Function apply_package_patch 

Source
pub async fn apply_package_patch(
    package_key: &str,
    pkg_path: &Path,
    files: &HashMap<String, PatchFileInfo>,
    blobs_path: &Path,
    dry_run: bool,
    force: bool,
) -> ApplyResult
Expand description

Verify and apply patches for a single package.

For each file in files, this function:

  1. Verifies the file is ready to be patched (or already patched).
  2. If not dry_run, reads the blob from blobs_path and writes it.
  3. Returns a summary of what happened.