summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2005-08-22 11:34:52 +0000
committerespie <espie@openbsd.org>2005-08-22 11:34:52 +0000
commitd011cd5853b23f3f6dd8e272146d2881e4c3ac2b (patch)
tree8826135dd3b2d533f813fab77d710bb18b7b5940
parentwhile scanning a potential package, process issues anyways: (diff)
downloadwireguard-openbsd-d011cd5853b23f3f6dd8e272146d2881e4c3ac2b.tar.xz
wireguard-openbsd-d011cd5853b23f3f6dd8e272146d2881e4c3ac2b.zip
likewise, report only the first three files
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Delete.pm10
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++;
}
}