diff options
Diffstat (limited to 'crates/shirabe/src/downloader/tar_downloader.rs')
| -rw-r--r-- | crates/shirabe/src/downloader/tar_downloader.rs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/crates/shirabe/src/downloader/tar_downloader.rs b/crates/shirabe/src/downloader/tar_downloader.rs index 6cf1176..8835e7d 100644 --- a/crates/shirabe/src/downloader/tar_downloader.rs +++ b/crates/shirabe/src/downloader/tar_downloader.rs @@ -61,7 +61,7 @@ impl TarDownloader { impl ChangeReportInterface for TarDownloader { fn get_local_changes( - &self, + &mut self, package: PackageInterfaceHandle, path: &str, ) -> Result<Option<String>> { @@ -75,12 +75,14 @@ impl DownloaderInterface for TarDownloader { self.inner.get_installation_source() } - fn as_change_report_interface(&self) -> Option<&dyn crate::downloader::ChangeReportInterface> { + fn as_change_report_interface( + &mut self, + ) -> Option<&mut dyn crate::downloader::ChangeReportInterface> { Some(self) } async fn download( - &self, + &mut self, package: PackageInterfaceHandle, path: &str, prev_package: Option<PackageInterfaceHandle>, @@ -92,7 +94,7 @@ impl DownloaderInterface for TarDownloader { } async fn prepare( - &self, + &mut self, r#type: &str, package: PackageInterfaceHandle, path: &str, @@ -104,7 +106,7 @@ impl DownloaderInterface for TarDownloader { } async fn install( - &self, + &mut self, package: PackageInterfaceHandle, path: &str, output: bool, @@ -113,7 +115,7 @@ impl DownloaderInterface for TarDownloader { } async fn update( - &self, + &mut self, initial: PackageInterfaceHandle, target: PackageInterfaceHandle, path: &str, @@ -122,7 +124,7 @@ impl DownloaderInterface for TarDownloader { } async fn remove( - &self, + &mut self, package: PackageInterfaceHandle, path: &str, output: bool, @@ -131,7 +133,7 @@ impl DownloaderInterface for TarDownloader { } async fn cleanup( - &self, + &mut self, r#type: &str, package: PackageInterfaceHandle, path: &str, |
