From 9c8b527d96bc79a2e204a075714fb4bcb00b4699 Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Fri, 19 Jul 2024 10:49:29 +0200 Subject: [PATCH] dnfdaemon-client: Fix repoquery command The transfer id is now generated on the server side, do not pass it in list_fd() call. --- dnf5daemon-client/commands/repoquery/repoquery.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dnf5daemon-client/commands/repoquery/repoquery.cpp b/dnf5daemon-client/commands/repoquery/repoquery.cpp index 9573b2712..ec89e1779 100644 --- a/dnf5daemon-client/commands/repoquery/repoquery.cpp +++ b/dnf5daemon-client/commands/repoquery/repoquery.cpp @@ -208,13 +208,11 @@ void RepoqueryCommand::run() { return; } - std::string fd_id; ctx.session_proxy->callMethod("list_fd") .onInterface(dnfdaemon::INTERFACE_RPM) .withTimeout(static_cast(-1)) .withArguments(options) - .withArguments(sdbus::UnixFd{pipefd[1]}) - .withArguments(fd_id); + .withArguments(sdbus::UnixFd{pipefd[1]}); close(pipefd[1]); int in_fd = pipefd[0];