Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg repo -F create the file database along with the regular package repository.
Baptiste Daroussin committed 13 years ago
commit d094c1b094f4a6143fb528708816a21330edf68d
parent 9b2f924
2 files changed +11 -5
modified pkg/pkg-repo.8
@@ -15,7 +15,7 @@
.\"     @(#)pkg.8
.\" $FreeBSD$
.\"
-
.Dd May 2, 2012
+
.Dd February 20, 2013
.Dt PKG-REPO 8
.Os
.Sh NAME
@@ -23,7 +23,7 @@
.Nd creates a package repository catalogue
.Sh SYNOPSIS
.Nm
-
.Op Fl fq
+
.Op Fl Ffq
.Ao Ar repo-path Ac Op Ar rsa-key
.Sh DESCRIPTION
.Nm
@@ -69,6 +69,8 @@ Force quiet output
.It Fl f
Force a full rebuild of the package catalogue, discarding any previous
content
+
.It Fl F
+
Activate the creation of the files database along with the reporisory
.El
.Sh ENVIRONMENT
The following environment variables affect the execution of
modified pkg/repo.c
@@ -90,8 +90,9 @@ exec_repo(int argc, char **argv)
	int ch;
	char *rsa_key;
	bool force = false;
+
	bool files = false;

-
	while ((ch = getopt(argc, argv, "fq")) != -1) {
+
	while ((ch = getopt(argc, argv, "Ffq")) != -1) {
		switch (ch) {
		case 'q':
			quiet = true;
@@ -99,6 +100,9 @@ exec_repo(int argc, char **argv)
		case 'f':
			force = true;
			break;
+
		case 'F':
+
			files = true;
+
			break;
		default:
			usage_repo();
			return (EX_USAGE);
@@ -114,9 +118,9 @@ exec_repo(int argc, char **argv)

	if (!quiet) {
		printf("Generating repo.sqlite in %s:  ", argv[0]);
-
		ret = pkg_create_repo(argv[0], force, true, progress, &pos);
+
		ret = pkg_create_repo(argv[0], force, files, progress, &pos);
	} else
-
		ret = pkg_create_repo(argv[0], force, true, NULL, NULL);
+
		ret = pkg_create_repo(argv[0], force, files, NULL, NULL);

	if (ret != EPKG_OK) {
		printf("cannot create repository catalogue\n");