Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix build by updating proper pkg.h for pkg repo -o output_dir
Bryan Drewery committed 12 years ago
commit c266102f256715783cb160ec3e7d90e812df0838
parent 0bc7f49
1 file changed +5 -2
modified libpkg/pkg.h.in
@@ -934,14 +934,17 @@ int pkg_is_installed(struct pkgdb *db, const char *origin);
/**
 * Create a repository database.
 * @param path The path where the repository live.
+
 * @param output_dir The path where the package repository should be created.
 * @param force If true, rebuild the repository catalogue from scratch
 * @param filesite If true, create a list of all files in repo
 * @param callback A function which is called at every step of the process.
 * @param data A pointer which is passed to the callback.
 * @param sum An 65 long char array to receive the sha256 sum
 */
-
int pkg_create_repo(char *path, bool filelist, void (*callback)(struct pkg *, void *), void *);
-
int pkg_finish_repo(char *path, pem_password_cb *cb, char **argv, int argc, bool filelist);
+
int pkg_create_repo(char *path, const char *output_dir, bool filelist,
+
    void (*callback)(struct pkg *, void *), void *);
+
int pkg_finish_repo(const char *output_dir, pem_password_cb *cb, char **argv,
+
    int argc, bool filelist);

/**
 * Test if the EUID has sufficient privilege to carry out some