diff options
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/pkg_add | 3 |
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} && |