Skip to content

Commit 789bead

Browse files
authored
Merge pull request #1430 from pfeifferj/fix/query-unwrap-pkgnotfound
fix: handle PkgNotFound gracefully in query operations
2 parents 133d942 + 09f6c46 commit 789bead

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/query.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ pub async fn print_upgrade_list(config: &mut Config) -> Result<i32> {
5252
}
5353

5454
let mut args = config.pacman_args();
55-
args.remove("u").remove("upgrades").arg("q");
55+
args.remove("u")
56+
.remove("upgrades")
57+
.remove("i")
58+
.remove("info")
59+
.arg("q");
5660
args.targets = aur.into_iter().collect();
5761
let output = exec::pacman_output(config, &args)?;
5862
let aur = String::from_utf8(output.stdout)?;

0 commit comments

Comments
 (0)