diff --git a/src/backends/apt.rs b/src/backends/apt.rs index 5969f81..ba5fa63 100644 --- a/src/backends/apt.rs +++ b/src/backends/apt.rs @@ -27,7 +27,7 @@ impl Backend for Apt { } fn query_installed_packages(config: &Config) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } diff --git a/src/backends/arch.rs b/src/backends/arch.rs index 7032711..042b4d4 100644 --- a/src/backends/arch.rs +++ b/src/backends/arch.rs @@ -27,7 +27,7 @@ impl Backend for Arch { mut packages: BTreeMap, config: &Config, ) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } @@ -94,7 +94,7 @@ impl Backend for Arch { } fn query_installed_packages(config: &Config) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } diff --git a/src/backends/brew.rs b/src/backends/brew.rs index d95a659..f9d22fa 100644 --- a/src/backends/brew.rs +++ b/src/backends/brew.rs @@ -27,7 +27,7 @@ impl Backend for Brew { } fn query_installed_packages(config: &Config) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } diff --git a/src/backends/cargo.rs b/src/backends/cargo.rs index c5954f0..5ca7f21 100644 --- a/src/backends/cargo.rs +++ b/src/backends/cargo.rs @@ -46,7 +46,7 @@ impl Backend for Cargo { } fn query_installed_packages(config: &Config) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } diff --git a/src/backends/dnf.rs b/src/backends/dnf.rs index ca01df4..c2ebb85 100644 --- a/src/backends/dnf.rs +++ b/src/backends/dnf.rs @@ -31,7 +31,7 @@ impl Backend for Dnf { } fn query_installed_packages(config: &Config) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } diff --git a/src/backends/flatpak.rs b/src/backends/flatpak.rs index 468ebf6..64ea542 100644 --- a/src/backends/flatpak.rs +++ b/src/backends/flatpak.rs @@ -30,7 +30,7 @@ impl Backend for Flatpak { } fn query_installed_packages(config: &Config) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } diff --git a/src/backends/pipx.rs b/src/backends/pipx.rs index c42ddb3..c503fe1 100644 --- a/src/backends/pipx.rs +++ b/src/backends/pipx.rs @@ -32,7 +32,7 @@ impl Backend for Pipx { } fn query_installed_packages(config: &Config) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } diff --git a/src/backends/rustup.rs b/src/backends/rustup.rs index 16bfa22..6b98f54 100644 --- a/src/backends/rustup.rs +++ b/src/backends/rustup.rs @@ -35,7 +35,7 @@ impl Backend for Rustup { } fn query_installed_packages(config: &Config) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } diff --git a/src/backends/winget.rs b/src/backends/winget.rs index bfdd065..80ffd39 100644 --- a/src/backends/winget.rs +++ b/src/backends/winget.rs @@ -29,7 +29,7 @@ impl Backend for WinGet { } fn query_installed_packages(config: &Config) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); } diff --git a/src/backends/xbps.rs b/src/backends/xbps.rs index ee3d014..14f1334 100644 --- a/src/backends/xbps.rs +++ b/src/backends/xbps.rs @@ -31,7 +31,7 @@ impl Backend for Xbps { fn query_installed_packages( config: &Config, ) -> Result> { - if Self::version(config).is_ok() { + if Self::version(config).is_err() { return Ok(BTreeMap::new()); }