summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Vstat.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-12-20 22:38:46 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-12-20 22:38:46 +0000
commitbba9772e4d927f8e030f52f8e2fd93495708d9b4 (patch)
treea58be9eeb92a7908cb41eef12f8cc1b9455bb137 /usr.sbin/pkg_add/OpenBSD/Vstat.pm
parent8c535558bce9193ff0c6715d567d2fe90d8388d5 (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/Vstat.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Vstat.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Vstat.pm b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
index 0411ce0f3cb..c5011bad5ab 100644
--- a/usr.sbin/pkg_add/OpenBSD/Vstat.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Vstat.pm,v 1.44 2009/11/11 12:21:20 espie Exp $
+# $OpenBSD: Vstat.pm,v 1.45 2009/12/20 22:38:45 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -204,7 +204,7 @@ sub report_ro
{
my ($s, $state, $fname) = @_;
- if ($state->{very_verbose} or ++($s->{problems}) < 4) {
+ if ($state->verbose >= 3 or ++($s->{problems}) < 4) {
$state->errsay("Error: ", $s->{dev},
" is read-only ($fname)");
} elsif ($s->{problems} == 4) {
@@ -217,7 +217,7 @@ sub report_overflow
{
my ($s, $state, $fname) = @_;
- if ($state->{very_verbose} or ++($s->{problems}) < 4) {
+ if ($state->verbose >= 3 or ++($s->{problems}) < 4) {
$state->errsay("Error: ", $s->{dev},
" is not large enough ($fname)");
} elsif ($s->{problems} == 4) {