diff options
| author | Namilskyy <alive6863@gmail.com> | 2025-12-01 15:14:58 +0300 |
|---|---|---|
| committer | Namilskyy <alive6863@gmail.com> | 2025-12-01 15:14:58 +0300 |
| commit | 84b5aa13a0e6e5c8c9884ae3f973e560e7d4c59b (patch) | |
| tree | 5e87585744a8e9e8063ba5e755e17771e5a280d4 /src/pkgtoolkit | |
| parent | 4262072d0d79449da6b94fb8863064c3fe7998d5 (diff) | |
Fixed test logic and formatted code
Diffstat (limited to 'src/pkgtoolkit')
| -rw-r--r-- | src/pkgtoolkit/pkgtools.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/pkgtoolkit/pkgtools.rs b/src/pkgtoolkit/pkgtools.rs index 0105a11..a0433ac 100644 --- a/src/pkgtoolkit/pkgtools.rs +++ b/src/pkgtoolkit/pkgtools.rs @@ -42,7 +42,7 @@ pub struct InstallMeta { user: String, group: String, mode: String, - //! Cancels the previous fields and installs them using the shell script + // Cancels the previous fields and installs them using the shell script custom_script: Option<String>, } @@ -56,9 +56,9 @@ struct Install { #[allow(dead_code)] #[derive(Deserialize, Debug)] struct Setts { - //! Export environment variables if this needed + // Export environment variables if this needed env: Option<String>, - //! Test the package after installation + // Test the package after installation test: Option<String>, } @@ -306,9 +306,7 @@ impl Package { Self::extract_archive(&path_to_archive)?; let archive_path = Path::new(&path_to_archive); - let archive_dir = archive_path - .parent() - .unwrap_or_else(|| Path::new(".")); + let archive_dir = archive_path.parent().unwrap_or_else(|| Path::new(".")); let install_path = archive_dir.join("INSTALL"); let setts_path = archive_dir.join("SETTS"); @@ -355,7 +353,6 @@ impl Package { log::info!("Validating arch..."); - let install_parsed = match install_content { Ok(v) => v, Err(e) => { |
