From 8635ef162ca487321287afd5099a2a90a46deb9c Mon Sep 17 00:00:00 2001 From: espie Date: Thu, 30 Oct 2008 17:52:56 +0000 Subject: [PATCH] if item does not exist, don't check whether it's a shell. --- infrastructure/install/make-plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/install/make-plist b/infrastructure/install/make-plist index 064237243e0..a31ffd68b36 100755 --- a/infrastructure/install/make-plist +++ b/infrastructure/install/make-plist @@ -1,5 +1,5 @@ #! /usr/bin/perl -# $OpenBSD: make-plist,v 1.136 2008/10/30 16:35:31 espie Exp $ +# $OpenBSD: make-plist,v 1.137 2008/10/30 17:52:56 espie Exp $ # Copyright (c) 2004-2008 Marc Espie # # Permission to use, copy, modify, and distribute this software for any @@ -713,7 +713,7 @@ sub create_object } elsif ($type eq "library") { return OpenBSD::PackingElement::Lib->new($short); } elsif ($type eq "binary") { - if ($item->isa("OpenBSD::PackingElement::Shell")) { + if (defined $item && $item->isa("OpenBSD::PackingElement::Shell")) { return OpenBSD::PackingElement::Shell->new($short); } else { return OpenBSD::PackingElement::Binary->new($short);