summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-04-17 16:07:19 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-04-17 16:07:19 +0000
commit2740695946ba3875e66aa6b81b3dd2b6c9a4003b (patch)
tree377e23ba46a261b1393bae5224a616c030ed0471 /usr.sbin
parent053a08d0d5806919317fb69b4276ef00d189498e (diff)
work-around !found error.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/pkg_add3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index bffe7f01208..b9add7619bf 100644
--- a/usr.sbin/pkg_add/pkg_add
+++ b/usr.sbin/pkg_add/pkg_add
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_add,v 1.476 2010/04/10 10:18:12 espie Exp $
+# $OpenBSD: pkg_add,v 1.477 2010/04/17 16:07:18 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -226,6 +226,7 @@ sub complete
$n->complete($state);
my $pkgname = $n->pkgname;
my $plist = $n->plist;
+ return 1 if !defined $plist;
if (is_installed($pkgname) &&
(!$state->{allow_replacing} ||
!$state->{defines}->{installed} &&