diff options
| author | qvkap <qvkapp@gmail.com> | 2026-09-23 22:25:25 +0300 |
|---|---|---|
| committer | qvkap <qvkapp@gmail.com> | 2026-09-23 22:25:25 +0300 |
| commit | f890ebb3c4c8803e3dd4abba66e70657397f8122 (patch) | |
| tree | f241c2463932e211bcd7b1f0492a7eec1e721fbf /src/parallel.rs | |
| parent | 9f8906467a6c343a1a5d4a5afefc061ceba8e43d (diff) | |
| download | ror-f890ebb3c4c8803e3dd4abba66e70657397f8122.tar.gz ror-f890ebb3c4c8803e3dd4abba66e70657397f8122.zip | |
Bumped version to 1.0.3, fixing temporary file persistence via keep(), preventing UsrMerge circular symlink bugs, adding a host fallback for ldconfig, making virtual FS mount failures non-fatal during rootfs build, improving YAML error reporting, normalizing file permissions, and updating dependencies.
Diffstat (limited to 'src/parallel.rs')
| -rw-r--r-- | src/parallel.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parallel.rs b/src/parallel.rs index a3a722b..aacd9c3 100644 --- a/src/parallel.rs +++ b/src/parallel.rs @@ -162,7 +162,7 @@ async fn download_one(url: &str, expected_sha: &str, _cfg: &Config) -> Result<Pa } let mut tmp_file = NamedTempFile::new().map_err(|e| e.to_string())?; - let file_path = tmp_file.path().to_path_buf(); + let _file_path = tmp_file.path().to_path_buf(); let mut hasher = Sha256::new(); let body = res.bytes().await.map_err(|e| e.to_string())?; @@ -179,8 +179,8 @@ async fn download_one(url: &str, expected_sha: &str, _cfg: &Config) -> Result<Pa } } - drop(tmp_file); - Ok(file_path) + let (_, path) = tmp_file.keep().map_err(|e| e.to_string())?; + Ok(path) }) .await .unwrap_or_else(|_| Err("Download timed out".into())); |