diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2011-12-02 16:39:11 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2011-12-02 16:39:11 +0000 |
commit | 5090e8b1040f465420063b116e1bb9f282063906 (patch) | |
tree | a6dd6e7631a57948b73b6c8a4e0a599639d96f94 /usr.sbin | |
parent | 6a5c8cf4086d57083c8e1b648dbf26ac696a9081 (diff) |
small logic error
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgDelete.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm b/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm index a5609629688..2a21766df3b 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.28 2011/12/02 16:01:17 jmc Exp $ +# $OpenBSD: PkgDelete.pm,v 1.29 2011/12/02 16:39:10 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -212,7 +212,7 @@ sub process_parameters my $inst = $state->repo->installed; if (@ARGV == 0) { - if (!$state->{automatic} || $state->{exclude}) { + if (!($state->{automatic} || $state->{exclude})) { $state->fatal("No packages to delete"); } } else { |