From 0598537190f6556dd2f188d9ed6d833d3711bcea Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Fri, 7 Jun 2024 23:25:02 -0600 Subject: [PATCH] fix: keep `/` in app download file name --- kinode/packages/app_store/app_store/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kinode/packages/app_store/app_store/src/lib.rs b/kinode/packages/app_store/app_store/src/lib.rs index d8a8abf23..07f09c703 100644 --- a/kinode/packages/app_store/app_store/src/lib.rs +++ b/kinode/packages/app_store/app_store/src/lib.rs @@ -212,7 +212,7 @@ fn handle_remote_request(state: &mut State, source: &Address, request: RemoteReq let file_name = match &request { RemoteRequest::Download(_) => { // the file name of the zipped app - format!("{}.zip", package_id) + format!("/{}.zip", package_id) } }; @@ -220,7 +220,7 @@ fn handle_remote_request(state: &mut State, source: &Address, request: RemoteReq let Ok(Ok(_)) = Request::to(("our", "vfs", "distro", "sys")) .body( serde_json::to_vec(&vfs::VfsRequest { - path: format!("/{}/pkg/{}", package_id, file_name), + path: format!("/{}/pkg{}", package_id, file_name), action: vfs::VfsAction::Read, }) .unwrap(),