Commit 09f6c46
committed
fix: Remove -i flag when querying AUR packages in -Qu operation
Fixes #1340 where `paru -Qui` would crash with a panic.
The issue occurred because when the `-i` (info) flag was present,
it was passed to `pacman -Q` at line 55. This caused pacman to output
full package information instead of just package names.
The code then tried to look up these formatted strings as package names
with `db.pkg()`, which failed with PkgNotFound and caused the panic.
The fix removes the `-i` and `-info` flags before calling pacman to ensure
we always get just package names in the output.1 parent fdbbcdb commit 09f6c46
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
0 commit comments