diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-06-15 08:23:51 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-06-15 08:23:51 +0000 |
commit | e638bea349daf8534ae5852cd715d9a404847779 (patch) | |
tree | 359c182beae4ca2439b49349f310c291578290e8 /usr.sbin/pkg_add/OpenBSD/PackageInfo.pm | |
parent | 8da9d48734b8a1f02cd6cbf95155331cd6e988d6 (diff) |
make sure installed_stem is defined when needed, prevents some weird
errors.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageInfo.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageInfo.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm index 22cbc33c09c..a57600eb54a 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageInfo.pm,v 1.37 2008/03/08 12:07:45 espie Exp $ +# $OpenBSD: PackageInfo.pm,v 1.38 2008/06/15 08:23:50 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -91,6 +91,9 @@ sub delete_installed sub installed_stems { + if (!defined $list) { + _init_list(); + } return $stemlist; } |