pub fn load_cache_partial(
path: &PathBuf,
current_signature: &[String],
exact_match_only: bool,
) -> Option<Vec<SandboxInfo>>Expand description
What: Load cached sandbox data with partial matching support.
Inputs:
path: Filesystem location of the serializedSandboxCacheJSON.current_signature: Signature derived from the current install list for validation.exact_match_only: If true, only match when signatures are identical. If false, allow partial matching.
Output:
Some(Vec<SandboxInfo>)when the cache exists and matches (exact or partial);Noneotherwise.
Details:
- If
exact_match_onlyis false, loads entries for packages that exist in both the cached signature and the current signature (intersection matching). - This allows preserving sandbox data when packages are added to the install list.