Add a helper to get the dbdir and the cachedir path
modified libpkg/pkg_config.c
@@ -68,6 +68,8 @@ struct pkg_ctx ctx = {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -1185,6 +1187,8 @@ pkg_ini(const char *path, const char *reposdir, pkg_init_flags flags)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -1483,15 +1487,13 @@ pkg_set_rootdir(const char *rootdir) {
|
|
|
|
|
|
| - | |
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1500,15 +1502,13 @@ pkg_get_cachedirfd(void)
|
|
|
|
|
|
| - | |
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_jobs.c
@@ -66,6 +66,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -2174,7 +2176,7 @@ pkg_jobs_fetch(struct pkg_jobs *j)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_status.c
@@ -36,7 +36,9 @@
|
|
|
|
|
|
| + | |
|
|
| + | |
|
|
|
|
|
@@ -47,7 +49,6 @@ static bool is_exec_at_localbase(const char *progname);
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -73,8 +74,7 @@ pkg_status(int *count)
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkgdb.c
@@ -72,6 +72,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -869,8 +871,6 @@ pkgdb_check_access(unsigned mode, const char* dbdir, const char *dbname)
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -893,8 +893,6 @@ pkgdb_access(unsigned mode, unsigned database)
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -908,16 +906,16 @@ pkgdb_access(unsigned mode, unsigned database)
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1102,7 +1100,6 @@ pkgdb_open_all(struct pkgdb **db_p, pkgdb_t type, const char *reponame)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -1121,8 +1118,7 @@ retry:
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -2750,13 +2746,10 @@ void
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -241,6 +241,8 @@ struct pkg_ctx {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified libpkg/repo/binary/fetch.c
@@ -49,17 +49,16 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -77,14 +76,14 @@ pkg_repo_binary_get_cached_name(struct pkg_repo *repo, struct pkg *pkg,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -146,9 +145,9 @@ pkg_repo_binary_try_fetch(struct pkg_repo *repo, struct pkg *pkg,
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/repo/binary/init.c
@@ -48,6 +48,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -523,14 +525,9 @@ pkg_repo_binary_close(struct pkg_repo *repo, bool commit)
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified libpkg/repo/binary/update.c
@@ -597,7 +597,6 @@ pkg_repo_binary_update(struct pkg_repo *repo, bool force)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -609,7 +608,6 @@ pkg_repo_binary_update(struct pkg_repo *repo, bool force)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -617,18 +615,18 @@ pkg_repo_binary_update(struct pkg_repo *repo, bool force)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -664,7 +662,7 @@ cleanup:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/clean.c
@@ -337,8 +337,7 @@ exec_clean(int argc, char **argv)
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|