summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2013-05-29 21:58:26 +0000
committerMarc Espie <espie@cvs.openbsd.org>2013-05-29 21:58:26 +0000
commitd8f3026348aadb2f15214f0cb97e5e2125a6345b (patch)
tree958f6df924ae0fc267ad57d589952e10bdfd341e /usr.sbin
parent9aed1af5985c1aba5c1d2229c080737fa4228099 (diff)
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@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageLocator.pm3
1 files changed, 2 insertions, 1 deletions
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 <espie@openbsd.org>
#
@@ -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));
}