From fbfc33ccf7b4ed83d67c36d2e5f16f8339f3460e Mon Sep 17 00:00:00 2001 From: Hikari Hayashi Date: Sun, 5 Jan 2025 14:43:29 +0800 Subject: [PATCH] Use the appropriate format to query installed packages. Fixes #64 --- src/backends/dnf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/dnf.rs b/src/backends/dnf.rs index 9686b93..aa307b3 100644 --- a/src/backends/dnf.rs +++ b/src/backends/dnf.rs @@ -41,7 +41,7 @@ impl Backend for Dnf { "repoquery", "--installed", "--queryformat", - "%{from_repo}/%{name}", + "%{from_repo}/%{name}\n", ], Perms::Same, false, @@ -54,7 +54,7 @@ impl Backend for Dnf { "repoquery", "--userinstalled", "--queryformat", - "%{from_repo}/%{name}", + "%{from_repo}/%{name}\n", ], Perms::Same, false,