| |
/**
|
| |
* 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
|