Revert "more review stuff"

This reverts commit b95f3889bb.

This is WIP and does not compile right now. See branch `review`.
This commit is contained in:
Dr. Matthias Ratajczak
2023-01-30 16:55:45 +01:00
parent d52c95a9eb
commit 619387ed35
4 changed files with 99 additions and 138 deletions
-4
View File
@@ -67,10 +67,6 @@ impl Backend for Pacman {
cmd.status()
.with_context(|| format!("running command [{cmd:?}]"))
}
fn supports_assigning_packages_as_dependency(&self) -> bool {
true
}
}
fn get_all_installed_packages_from_alpm() -> Result<HashSet<String>> {
-4
View File
@@ -31,10 +31,6 @@ impl Backend for Rust {
self.get_all_installed_packages()
.context("getting all installed packages")
}
fn supports_assigning_packages_as_dependency(&self) -> bool {
false
}
}
fn extract_packages(json: Value) -> Result<HashSet<Package>> {
-2
View File
@@ -33,8 +33,6 @@ pub(crate) trait Backend {
.with_context(|| format!("running command {cmd:?}"))
}
fn supports_assigning_packages_as_dependency(&self) -> bool;
/// Remove the specified packages.
fn remove_packages(&self, packages: &[Package]) -> Result<ExitStatus> {
let mut cmd = Command::new(self.get_binary());