From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/downloader/zip_downloader.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crates/shirabe/src/downloader/zip_downloader.rs') diff --git a/crates/shirabe/src/downloader/zip_downloader.rs b/crates/shirabe/src/downloader/zip_downloader.rs index 90e5639..7f779c8 100644 --- a/crates/shirabe/src/downloader/zip_downloader.rs +++ b/crates/shirabe/src/downloader/zip_downloader.rs @@ -152,13 +152,13 @@ impl ZipDownloader { if !is_windows_guard.unwrap() && unzip_commands_empty { if proc_open_missing { - self.inner.inner.io.write_error("proc_open is disabled so 'unzip' and '7z' commands cannot be used, zip files are being unpacked using the PHP zip extension."); - self.inner.inner.io.write_error("This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost."); - self.inner.inner.io.write_error("Enabling proc_open and installing 'unzip' or '7z' (21.01+) may remediate them."); + self.inner.io.write_error("proc_open is disabled so 'unzip' and '7z' commands cannot be used, zip files are being unpacked using the PHP zip extension."); + self.inner.io.write_error("This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost."); + self.inner.io.write_error("Enabling proc_open and installing 'unzip' or '7z' (21.01+) may remediate them."); } else { - self.inner.inner.io.write_error("As there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension."); - self.inner.inner.io.write_error("This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost."); - self.inner.inner.io.write_error("Installing 'unzip' or '7z' (21.01+) may remediate them."); + self.inner.io.write_error("As there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension."); + self.inner.io.write_error("This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost."); + self.inner.io.write_error("Installing 'unzip' or '7z' (21.01+) may remediate them."); } } } @@ -226,7 +226,7 @@ impl ZipDownloader { Preg::is_match_strict_groups(r"^\s*7-Zip(?:\s\[64\])?\s([0-9.]+)", &output) { if version_compare(&m[1], "21.01", "<") { - self.inner.inner.io.write_error(&format!( + self.inner.io.write_error(&format!( " Unzipping using {} {} may result in incorrect file permissions. Install {} 21.01+ or unzip to ensure you get correct permissions.", executable, m[1], executable, )); @@ -235,7 +235,7 @@ impl ZipDownloader { } } - let io = &self.inner.inner.io; + let io = &self.inner.io; let try_fallback = |process_error: anyhow::Error| -> Result> { if is_last_chance { return Err(process_error); @@ -297,7 +297,7 @@ impl ZipDownloader { self.extract_with_zip_archive(package, file, path) }; - match self.inner.inner.process.execute_async(&command) { + match self.inner.process.execute_async(&command) { Ok(promise) => Ok(promise.then( Box::new(move |process: Process| -> Result<()> { if !process.is_successful() { -- cgit v1.3.1