]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix multi-repository support by properly respecting 'enabled' flag.
authorBryan Drewery <bdrewery@FreeBSD.org>
Thu, 12 Dec 2013 17:59:09 +0000 (17:59 +0000)
committerBryan Drewery <bdrewery@FreeBSD.org>
Thu, 12 Dec 2013 17:59:09 +0000 (17:59 +0000)
commiteb31a574742ba1fa7ca8c877a9745668a999fde8
tree517c8555fa73a2e782da273953eec6b3c4a98f25
parent369f2ddcb8339dfb73ba278660641eeb843cf040
Fix multi-repository support by properly respecting 'enabled' flag.

This will read the REPOS_DIR env/config setting (default is /etc/pkg
and /usr/local/etc/pkg/repos) and use the last enabled repository.

This can be changed in the environment using a comma-separated list,
or in /usr/local/etc/pkg.conf with JSON array syntax of:
    REPOS_DIR: ["/etc/pkg", "/usr/local/etc/pkg/repos"]

Approved by: bapt
MFC after: 1 week
usr.sbin/pkg/config.c
usr.sbin/pkg/config.h
usr.sbin/pkg/pkg.7