From d88c981ada01b446a4cb01183ca0ab5a85b1a25c Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 10 Aug 2018 03:32:35 +0200 Subject: dpkg-query: Flush output for --status, --print-avail and --listfiles at the end Do not flush the output on each entry output, instead wait until we have finished to flush it all out. This should speed up the output. --- src/querycmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/querycmd.c b/src/querycmd.c index bfb521a2e..560b05963 100644 --- a/src/querycmd.c +++ b/src/querycmd.c @@ -474,10 +474,9 @@ enqperpackage(const char *const *argv) if (*argv != NULL) putchar('\n'); - - m_output(stdout, _("")); } + m_output(stdout, _("")); if (failures) { fputs(_("Use dpkg --info (= dpkg-deb --info) to examine archive files,\n" "and dpkg --contents (= dpkg-deb --contents) to list their contents.\n"),stderr); -- cgit v1.2.3