summaryrefslogtreecommitdiff
path: root/src/pkgtoolkit
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkgtoolkit')
-rw-r--r--src/pkgtoolkit/pkgtools.rs11
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) => {