diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-12-24 14:37:29 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-12-24 14:37:29 +0000 |
commit | c407c975b2694a6fa5e54ab13b7dfacafdd0a060 (patch) | |
tree | 506c20ee1fdc0a7b2a366875c9130f3e5274f46d /usr.sbin/pkg_add | |
parent | 4dee6be6b10b7f792e2e198914b8aab7ebe7a03c (diff) |
make the final progress bar vanish unless verbose >= 2, as requested by
Theo.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/SharedItems.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/SharedItems.pm b/usr.sbin/pkg_add/OpenBSD/SharedItems.pm index f87ac3b2d9e..2b0b01cd545 100644 --- a/usr.sbin/pkg_add/OpenBSD/SharedItems.pm +++ b/usr.sbin/pkg_add/OpenBSD/SharedItems.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: SharedItems.pm,v 1.20 2009/12/21 10:46:16 espie Exp $ +# $OpenBSD: SharedItems.pm,v 1.21 2009/12/24 14:37:28 espie Exp $ # # Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org> # @@ -113,7 +113,11 @@ sub cleanup $done++; } } - $state->progress->next; + if ($state->verbose >= 2) { + $state->progress->next; + } else { + $state->progress->clear; + } } package OpenBSD::PackingElement; |