This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=d88c981ada01b446a4cb01183ca0ab5a85b1a25c

commit d88c981ada01b446a4cb01183ca0ab5a85b1a25c
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Aug 10 03:32:35 2018 +0200

    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.
---
 debian/changelog | 2 ++
 src/querycmd.c   | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7ac6dacac..db8a620ec 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -87,6 +87,8 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
     instead of truncating it, to avoid data loss. Closes: #898603
   * Fix use after free in dpkg maintainer script handling. Regression
     introduced in dpkg 1.19.0.
+  * Flush output for dpkg-query --status, --print-avail and --listfiles at
+    the end, instead of after each stanza.
   * Architecture support:
     - Add support for riscv64 CPU. Closes: #822914
       Thanks to Manuel A. Fernandez Montecelo <[email protected]>
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, _("<standard output>"));
   }
 
+  m_output(stdout, _("<standard output>"));
   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);

-- 
Dpkg.Org's dpkg

Reply via email to