From 90783a0ac060afb2278555777f665bd27b405a8a Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Mon, 19 Aug 2019 12:09:08 +0000 Subject: add a special flag -DDONTLOG so that regress test won't spam /var/log/messages --- usr.sbin/pkg_add/OpenBSD/AddDelete.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 # @@ -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; -- cgit v1.2.3