summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-08-19 12:09:08 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-08-19 12:09:08 +0000
commit90783a0ac060afb2278555777f665bd27b405a8a (patch)
treec26c1287ff9b0366f80ec44a37f7a4b27a002f6d /usr.sbin
parent937a18e8463f71f2f1ad3eef4cfc337348216ebd (diff)
add a special flag -DDONTLOG so that regress test won't spam /var/log/messages
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/AddDelete.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
index b62478dc067..b335f5b7cc9 100644
--- a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
+++ b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: AddDelete.pm,v 1.90 2019/07/21 14:05:30 espie Exp $
+# $OpenBSD: AddDelete.pm,v 1.91 2019/08/19 12:09:07 espie Exp $
#
# Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org>
#
@@ -253,7 +253,7 @@ sub handle_options
$state->{extra} = $state->opt('c');
$state->{automatic} = $state->opt('a') // 0;
$ENV{'PKG_DELETE_EXTRA'} = $state->{extra} ? "Yes" : "No";
- if ($state->{not}) {
+ if ($state->{not} || $state->defines('DONTLOG')) {
$state->{loglevel} = 0;
}
$state->{loglevel} //= 1;