From d8f3026348aadb2f15214f0cb97e5e2125a6345b Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 29 May 2013 21:58:26 +0000 Subject: I had misgivings about that one, I was right. Missed an obvious testcases, and my crash bunnies ARE a bunch of unreliable nitwits. thanks kili@ --- usr.sbin/pkg_add/OpenBSD/PackageLocator.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm index faf9ec52ad3..dc7941e89b2 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageLocator.pm,v 1.101 2013/05/29 09:35:16 espie Exp $ +# $OpenBSD: PackageLocator.pm,v 1.102 2013/05/29 21:58:25 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie # @@ -42,6 +42,7 @@ sub build_default_path $default_path->add(OpenBSD::PackageRepository->new("./", $state)->can_be_empty); return if $state->defines('NOINSTALLPATH'); + return unless defined $state->config->value('installpath'); for my $i ($state->config->value("installpath")) { $default_path->add(OpenBSD::PackageRepository->new($i, $state)); } -- cgit v1.2.3