mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
appmgr: compat unpack_in from tokio-tar
This commit is contained in:
committed by
Keagan McClelland
parent
47e3361c4f
commit
431ff86647
@@ -373,7 +373,7 @@ pub async fn install_v0<R: AsyncRead + Unpin + Send + Sync>(
|
||||
.with_code(crate::error::FILESYSTEM_ERROR)?;
|
||||
}
|
||||
}
|
||||
src.unpack_in(&dst_path).await?;
|
||||
src.unpack_in(&dst_path).compat().await?;
|
||||
if src.header().entry_type().is_dir() {
|
||||
loop {
|
||||
let mut file = entries
|
||||
@@ -387,7 +387,7 @@ pub async fn install_v0<R: AsyncRead + Unpin + Send + Sync>(
|
||||
{
|
||||
break;
|
||||
} else {
|
||||
file.unpack_in(&dst_path).await?;
|
||||
file.unpack_in(&dst_path).compat().await?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user