diff options
author | Guillem Jover <guillem@debian.org> | 2018-08-10 03:32:35 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-08-30 03:14:08 +0200 |
commit | d88c981ada01b446a4cb01183ca0ab5a85b1a25c (patch) | |
tree | a76287d2429eb74dd95749e3472fa1921e9db7bf | |
parent | 60e4b9c2e969cb876fd9282f92e73f799485620b (diff) | |
download | dpkg-d88c981ada01b446a4cb01183ca0ab5a85b1a25c.tar.gz |
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.
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | 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 <mafm@debian.org> 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); |