diff options
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); } |