diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-01-18 10:04:54 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-01-18 10:04:54 +0000 |
commit | 0b76f55f0766eb55aaf647896d7a8067012bfc09 (patch) | |
tree | ac8cc3ca27fcd6502dbd3977a6b2f74ecba0dfb7 /usr.sbin/pkg_add | |
parent | e4b5e9391945edbcb596cf9f3c3814b8f7f4e2ea (diff) |
don't bother checking for exec and displaying them if we're not verbose
and we have -D update on.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Replace.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm index 070c3c8005d..c48bfaa4734 100644 --- a/usr.sbin/pkg_add/OpenBSD/Replace.pm +++ b/usr.sbin/pkg_add/OpenBSD/Replace.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Replace.pm,v 1.68 2010/01/11 12:25:38 espie Exp $ +# $OpenBSD: Replace.pm,v 1.69 2010/01/18 10:04:53 espie Exp $ # # Copyright (c) 2004-2010 Marc Espie <espie@openbsd.org> # @@ -213,6 +213,10 @@ sub is_set_safe { my ($set, $state) = @_; + if ($state->{defines}->{update} && !$state->verbose) { + return 1; + } + my $ok = 1; for my $pkg ($set->older) { |