Implement the files.txz database, still missing a cool arguments for pkg repo to activate/deactivate it and still missing pkg filesearch
modified libpkg/pkg.h.in
@@ -810,12 +810,13 @@ int pkg_is_installed(struct pkgdb *db, const char *origin);
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_repo.c
@@ -1,5 +1,5 @@
|
|
| - | |
| + | |
|
|
|
|
|
@@ -70,6 +70,7 @@ typedef enum _sql_prstmt_index {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -143,6 +144,12 @@ static sql_prstmt sql_prepared_statements[PRSTMT_LAST] = {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -294,7 +301,8 @@ get_repo_user_version(sqlite3 *sqlite, const char *database, int *reposcver)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -373,8 +381,23 @@ initialize_repo(const char *repodb, bool force, sqlite3 **sqlite)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -384,6 +407,13 @@ initialize_repo(const char *repodb, bool force, sqlite3 **sqlite)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -402,13 +432,15 @@ initialize_repo(const char *repodb, bool force, sqlite3 **sqlite)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -426,6 +458,12 @@ initialize_repo(const char *repodb, bool force, sqlite3 **sqlite)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -443,21 +481,27 @@ initialize_repo(const char *repodb, bool force, sqlite3 **sqlite)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -505,11 +549,13 @@ run_prepared_statement(sql_prstmt_index s, ...)
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -551,8 +597,39 @@ maybe_delete_conflicting(const char *origin, const char *version,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -561,6 +638,7 @@ pkg_create_repo(char *path, bool force,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -577,9 +655,8 @@ pkg_create_repo(char *path, bool force,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -601,34 +678,19 @@ pkg_create_repo(char *path, bool force,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -791,11 +853,23 @@ pkg_create_repo(char *path, bool force,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -825,7 +899,7 @@ pkg_create_repo(char *path, bool force,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -932,14 +1006,34 @@ read_pkg_file(void *data)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -948,20 +1042,11 @@ pkg_finish_repo(char *path, pem_password_cb *password_cb, char *rsa_key_path)
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified pkg/repo.c
@@ -114,9 +114,9 @@ exec_repo(int argc, char **argv)
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|