diff options
author | 2019-08-19 12:09:07 +0000 | |
---|---|---|
committer | 2019-08-19 12:09:07 +0000 | |
commit | 96acc6407125b3c29a7fec99b6ff815b4d850a3d (patch) | |
tree | a9c3b559f4aff9971d504d82bcbc6510434b7a63 | |
parent | define CONFIG_X86* in autoconf.h as needed and reduce diff to linux (diff) | |
download | wireguard-openbsd-96acc6407125b3c29a7fec99b6ff815b4d850a3d.tar.xz wireguard-openbsd-96acc6407125b3c29a7fec99b6ff815b4d850a3d.zip |
add a special flag -DDONTLOG so that regress test won't spam /var/log/messages
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/AddDelete.pm | 4 |
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; |