pkg: add the ability to query by flavors
modified libpkg/pkg.h.in
@@ -199,7 +199,8 @@ typedef enum {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkgdb.c
@@ -128,6 +128,7 @@ pkgdb_regex(sqlite3_context *ctx, int argc, sqlite3_value **argv)
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/pkgdb_query.c
@@ -63,12 +63,15 @@ pkgdb_get_pattern_query(const char *pattern, match_t match)
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -80,8 +83,10 @@ pkgdb_get_pattern_query(const char *pattern, match_t match)
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
@@ -90,8 +95,10 @@ pkgdb_get_pattern_query(const char *pattern, match_t match)
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
@@ -102,10 +109,12 @@ pkgdb_get_pattern_query(const char *pattern, match_t match)
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -113,10 +122,12 @@ pkgdb_get_pattern_query(const char *pattern, match_t match)
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -140,18 +151,29 @@ pkgdb_query_cond(struct pkgdb *db, const char *cond, const char *pattern, match_
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -160,6 +182,7 @@ pkgdb_query_cond(struct pkgdb *db, const char *cond, const char *pattern, match_
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/repo/binary/query.c
@@ -103,13 +103,21 @@ pkg_repo_binary_query(struct pkg_repo *repo, const char *cond, const char *patte
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -296,7 +304,10 @@ pkg_repo_binary_build_search_query(xstring *sql, match_t match,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -320,8 +331,10 @@ pkg_repo_binary_build_search_query(xstring *sql, match_t match,
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
@@ -351,13 +364,19 @@ pkg_repo_binary_search(struct pkg_repo *repo, const char *pattern, match_t match
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified src/search.c
@@ -373,9 +373,12 @@ exec_search(int argc, char **argv)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -392,6 +395,7 @@ exec_search(int argc, char **argv)
|
|
|
|
|
|
| + | |
|
|
|
|
|