diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2013-01-07 10:50:42 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2013-01-07 10:50:42 +0000 |
commit | c33a63dbc132e789a7cdcf791425ccd667cc2147 (patch) | |
tree | 460e8fd425864b95b203df178d9150690bc2beb2 /usr.sbin/pkg_add | |
parent | b0c1cbdfcff84734138ffa7e386be776515039a5 (diff) |
only protest midly if we're in exclude mode, so that you can exclude stuff
that does not exist, and that you will still see typos.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgDelete.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm b/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm index 2a21766df3b..d3305ae8e1e 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm @@ -1,6 +1,6 @@ #!/usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgDelete.pm,v 1.29 2011/12/02 16:39:10 espie Exp $ +# $OpenBSD: PkgDelete.pm,v 1.30 2013/01/07 10:50:41 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -21,6 +21,7 @@ use warnings; use OpenBSD::AddDelete; + package OpenBSD::PkgDelete::Tracker; sub new @@ -227,7 +228,9 @@ sub process_parameters } if (!defined $l) { $state->say("Problem finding #1", $pkgname); - $state->{bad}++; + unless ($state->{exclude}) { + $state->{bad}++; + } } else { $self->add_location($state, $l); } |