summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/info/perform.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-03-25 00:51:41 +0000
committermdodd <mdodd@FreeBSD.org>2003-03-25 00:51:41 +0000
commit8c0555725714815a1709f7c116a52e08092ed4f9 (patch)
tree5343c59b44205140936869904a792e6618e240e7 /usr.sbin/pkg_install/info/perform.c
parentba4c60f27ee16075b83e7a0b8fb7a465ee1409d3 (diff)
downloadFreeBSD-src-8c0555725714815a1709f7c116a52e08092ed4f9.zip
FreeBSD-src-8c0555725714815a1709f7c116a52e08092ed4f9.tar.gz
Implement the 'Q' option which is like 'q' (quiet output) except
that it prefaces the output with the package name. This is useful for things like this: # pkg_info -Qsa | awk -F : '{print $2 "\t" $1}' | sort -rn | expand -t 10
Diffstat (limited to 'usr.sbin/pkg_install/info/perform.c')
-rw-r--r--usr.sbin/pkg_install/info/perform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/info/perform.c b/usr.sbin/pkg_install/info/perform.c
index d87dd13..f45f7c7 100644
--- a/usr.sbin/pkg_install/info/perform.c
+++ b/usr.sbin/pkg_install/info/perform.c
@@ -191,6 +191,8 @@ pkg_do(char *pkg)
/* Start showing the package contents */
if (!Quiet)
printf("%sInformation for %s:\n\n", InfoPrefix, pkg);
+ else if (QUIET)
+ printf("%s%s:", InfoPrefix, pkg);
if (Flags & SHOW_COMMENT)
show_file("Comment:\n", COMMENT_FNAME);
if (Flags & SHOW_REQUIRE)
OpenPOWER on IntegriCloud