diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-12-20 22:38:46 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-12-20 22:38:46 +0000 |
commit | bba9772e4d927f8e030f52f8e2fd93495708d9b4 (patch) | |
tree | a58be9eeb92a7908cb41eef12f8cc1b9455bb137 /usr.sbin/pkg_add/OpenBSD/Update.pm | |
parent | 8c535558bce9193ff0c6715d567d2fe90d8388d5 (diff) |
change verbosity handling: be silent by default, turn on the first level if -v.
Add more levels, specifically, lots of info regarding individual files only
visible if -vvvvv.
Make -n display the same stuff as normal (need -n -v to display more stuff).
Introduce -s, "size-only", turns on -n and does skip any extraction.
Sprinkle handlers for SIG_INFO, not really nice yet.
Note that -n is non functional for complex updates, because of caching
issues I have to fix.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Update.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Update.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm index c65cc94d4fa..48a8cf67c34 100644 --- a/usr.sbin/pkg_add/OpenBSD/Update.pm +++ b/usr.sbin/pkg_add/OpenBSD/Update.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Update.pm,v 1.118 2009/12/14 18:11:26 espie Exp $ +# $OpenBSD: Update.pm,v 1.119 2009/12/20 22:38:45 espie Exp $ # # Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org> # @@ -74,7 +74,7 @@ sub progress_message my ($self, $state, $msg) = @_; $msg .= $state->ntogo; $state->progress->message($msg); - $state->say($msg) if $state->{beverbose}; + $state->say($msg) if $state->verbose >= 2; } my $first = 1; @@ -197,7 +197,7 @@ sub process_handle } $state->say("Update candidates: $pkgname -> ", - join(' ', map {$_->name} @$l), $state->ntogo); + join(' ', map {$_->name} @$l), $state->ntogo) if $state->verbose; my $r = $state->choose_location($pkgname, $l); if (defined $r) { |