diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-08-22 11:34:53 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-08-22 11:34:53 +0000 |
commit | 1a14283771a9d1983e743bb08fcba2dba23caa3e (patch) | |
tree | ae5121a05e89f8a84b6ec383773f6388431709d4 /usr.sbin/pkg_add/OpenBSD | |
parent | 97bf755d90795d170b1988570be062211827590e (diff) |
likewise, report only the first three files
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Delete.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm index 37080c30f0d..64e3d0e7afb 100644 --- a/usr.sbin/pkg_add/OpenBSD/Delete.pm +++ b/usr.sbin/pkg_add/OpenBSD/Delete.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Delete.pm,v 1.26 2005/08/17 09:19:09 espie Exp $ +# $OpenBSD: Delete.pm,v 1.27 2005/08/22 11:34:52 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -109,7 +109,13 @@ sub validate_plist($$) my $s = OpenBSD::Vstat::remove($fname, $item->{size}); next unless defined $s; if ($s->{ro}) { - Warn "Error: ", $s->{dev}, " is read-only ($fname)\n"; + if ($state->{very_verbose} or ++($s->{problems}) < 4) { + Warn "Error: ", $s->{dev}, + " is read-only ($fname)\n"; + } elsif ($s->{problems} == 4) { + Warn "Error: ... more files can't be removed from ", + $s->{dev}, "\n"; + } $problems++; } } |