Do not assert if pattern is empty in query.
modified libpkg/pkgdb_query.c
@@ -143,7 +143,9 @@ pkgdb_query(struct pkgdb *db, const char *pattern, match_t match)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -174,8 +176,11 @@ pkgdb_query_which(struct pkgdb *db, const char *path, bool glob)
|
|
|
|
|
|
| - | |
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/repo/binary/query.c
@@ -115,7 +115,8 @@ pkg_repo_binary_query(struct pkg_repo *repo, const char *pattern, match_t match)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -327,7 +328,8 @@ pkg_repo_binary_search(struct pkg_repo *repo, const char *pattern, match_t match
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|