Skip to content

Commit

Permalink
dnfdaemon-client: Fix repoquery command
Browse files Browse the repository at this point in the history
The transfer id is now generated on the server side, do not pass it in
list_fd() call.
  • Loading branch information
m-blaha committed Jul 19, 2024
1 parent 33d5640 commit 9c8b527
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dnf5daemon-client/commands/repoquery/repoquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint64_t>(-1))
.withArguments(options)
.withArguments(sdbus::UnixFd{pipefd[1]})
.withArguments(fd_id);
.withArguments(sdbus::UnixFd{pipefd[1]});
close(pipefd[1]);

int in_fd = pipefd[0];
Expand Down

0 comments on commit 9c8b527

Please sign in to comment.