fix: getting proper system state
Instead of getting only explicitly installed packages from official repo, returned was every explisitly installed package. Instead of getting only explicitly installed packages from unofficial sources (aur), returned was every package installed from unofficial sources.
This commit is contained in:
@@ -3,7 +3,7 @@ use std::process::{Command, Stdio};
|
|||||||
|
|
||||||
pub fn get_system_state() -> Result<Packages> {
|
pub fn get_system_state() -> Result<Packages> {
|
||||||
let command = Command::new("pacman")
|
let command = Command::new("pacman")
|
||||||
.arg("-Qqe")
|
.arg("-Qqen")
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.output()?;
|
.output()?;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ pub fn get_system_state() -> Result<Packages> {
|
|||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
let command = Command::new("pacman")
|
let command = Command::new("pacman")
|
||||||
.arg("-Qqm")
|
.arg("-Qqem")
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.output()?;
|
.output()?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user