style(fedora): Comments and empty lines

Signed-off-by: innocentzero <isfarulhaque@proton.me>
This commit is contained in:
innocentzero
2024-04-11 22:48:14 +05:30
parent f8a4671f09
commit 1ba6b365a3
@@ -36,9 +36,10 @@ impl Backend for Fedora {
fn get_all_installed_packages(&self) -> Result<HashSet<Package>> {
let mut cmd = Command::new(self.get_binary());
cmd.args(self.get_switches_info());
let output = String::from_utf8(cmd.output()?.stdout)?;
let output = String::from_utf8(cmd.output()?.stdout)?;
let packages: HashSet<Package> = output.lines().map(create_package).collect();
Ok(packages)
}
@@ -52,8 +53,8 @@ impl Backend for Fedora {
]);
let output = String::from_utf8(cmd.output()?.stdout)?;
let packages: HashSet<Package> = output.lines().map(create_package).collect();
Ok(packages)
}
@@ -74,6 +75,7 @@ impl Backend for Fedora {
}
}
// add these two repositories as these are needed for many dependencies
cmd.args(["--repo", "updates"]);
cmd.args(["--repo", "fedora"]);
@@ -92,6 +94,7 @@ impl Backend for Fedora {
for p in packages {
cmd.arg(&p.name);
}
run_external_command(cmd)
}