From 2740695946ba3875e66aa6b81b3dd2b6c9a4003b Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sat, 17 Apr 2010 16:07:19 +0000 Subject: work-around !found error. --- usr.sbin/pkg_add/pkg_add | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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 # @@ -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} && -- cgit v1.2.3