diff --git a/crates/dbx-core/src/agent_service.rs b/crates/dbx-core/src/agent_service.rs index 07ecd547b5..b699856fd2 100644 --- a/crates/dbx-core/src/agent_service.rs +++ b/crates/dbx-core/src/agent_service.rs @@ -1250,7 +1250,9 @@ pub struct OfflineImportPlan { pub includes_jre: bool, } +type OfflineJreEntry = (String, String); type OfflineDriverEntry = (String, String, bool); +type OfflineArchiveEntries = (Vec, Vec); pub fn inspect_offline_zip(zip_path: &Path) -> Result { let file = std::fs::File::open(zip_path).map_err(|e| format!("Failed to open ZIP file: {e}"))?; @@ -1401,7 +1403,7 @@ pub fn import_offline_zip( fn collect_offline_entries( archive: &mut zip::ZipArchive, registry: &AgentRegistry, -) -> Result<(Vec<(String, String)>, Vec), String> { +) -> Result { let platform = AgentManager::current_platform(); let mut jre_entries = Vec::new(); let mut drivers = std::collections::BTreeMap::::new();