Hi there,

see attached diff to PackageLocator.pm.
It seems like in it's current version it doesn't support multiple installpath entries, like:

installpath = ftp://mymirror/localrepo
installpath += ftp://mymirror/officialrepo

Before it was only honoring the first entry, no matter whether += or = for the first entry.

However, now it works as documented in pkg.conf(5)

best regards,
Marian

http://crivens.terrorteam.de/~rabauke/OpenBSD/PackageLocator.pm.diff

or

Index: usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
===================================================================
RCS file: /cvs/src/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm,v
retrieving revision 1.99
diff -p -u -r1.99 PackageLocator.pm
--- usr.sbin/pkg_add/OpenBSD/PackageLocator.pm 26 Aug 2011 08:46:10 -0000 1.99 +++ usr.sbin/pkg_add/OpenBSD/PackageLocator.pm 7 Sep 2011 10:19:24 -0000
@@ -40,7 +40,7 @@ sub build_default_path
                return;
        }
$default_path->add(OpenBSD::PackageRepository->new("./", $state)->can_be_empty);
-       if (my $i = $state->config->value("installpath")) {
+       for my $i ($state->config->value("installpath")) {
                $default_path->add(OpenBSD::PackageRepository->new($i, $state));
        }
}

Reply via email to