Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Attempt to load repository files from /etc/pkg/repos.
Bryan Drewery committed 12 years ago
commit 06cd326e85ece0ebf43090d9b739e5b408f28910
parent c6ebeea
2 files changed +6 -1
modified libpkg/pkg_config.c
@@ -911,6 +911,9 @@ load_repositories(const char *repodir)
		return;
	}

+
	if (access("/etc/pkg/repos", F_OK) == 0)
+
		load_repo_files("/etc/pkg/repos");
+

	v = NULL;
	while (pkg_config_list(PKG_CONFIG_REPOS_DIR, &v) == EPKG_OK)
		load_repo_files(pkg_config_value(v));
modified pkg/pkg.conf.5
@@ -15,7 +15,7 @@
.\"     @(#)pkg.1
.\" $FreeBSD$
.\"
-
.Dd September 29, 2013
+
.Dd October 17, 2013
.Dt PKG.CONF 5
.Os
.Sh NAME
@@ -213,6 +213,8 @@ To use multiple repositories, specify the primary repository as shown above.
Further repositores can be configured using repository files.
.Pp
Repository files reside in
+
.Pa /etc/pkg/repos/
+
and
.Pa /usr/local/etc/pkg/repos/ .
.Pp
Filenames are arbitrary, but should end in