summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2013-05-29 09:35:17 +0000
committerMarc Espie <espie@cvs.openbsd.org>2013-05-29 09:35:17 +0000
commit1b243fb854e4ccca8cf1c10ed951c53d849f53c9 (patch)
tree22e03294524111c2eb0ee7a342f63fbfe64239ae /usr.sbin
parent6bc724f7711e263442c55c448bfd56a5cefe00bd (diff)
allow installpath to use +=, requested by quite a few people,
but did require testing.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageLocator.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
index 0cbfb677d09..faf9ec52ad3 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.100 2012/07/13 07:50:13 espie Exp $
+# $OpenBSD: PackageLocator.pm,v 1.101 2013/05/29 09:35:16 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -42,7 +42,7 @@ sub build_default_path
$default_path->add(OpenBSD::PackageRepository->new("./", $state)->can_be_empty);
return if $state->defines('NOINSTALLPATH');
- if (my $i = $state->config->value("installpath")) {
+ for my $i ($state->config->value("installpath")) {
$default_path->add(OpenBSD::PackageRepository->new($i, $state));
}
}