Add the capability to query abstract metadata for packages via pkg {info,search,query,rquery}
modified pkg/info.c
@@ -50,8 +50,8 @@ usage_info(void)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -83,11 +83,14 @@ exec_info(int argc, char **argv)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
modified pkg/pkg-info.8
@@ -15,7 +15,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -27,10 +27,10 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -41,6 +41,8 @@ The following options are supported by
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified pkg/pkg-query.8
@@ -15,7 +15,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -106,7 +106,7 @@ Returns 1 if the matched package is locked against modification or deletion, 0 o
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -131,8 +131,10 @@ for groups
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -159,6 +161,8 @@ for shared
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -205,6 +209,13 @@ Expands to the list of groups needed by the matched package.
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -247,7 +258,7 @@ Message of the package (type string)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified pkg/pkg-rquery.8
@@ -15,7 +15,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -105,7 +105,7 @@ is in bytes, and
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -122,7 +122,9 @@ for licenses
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -139,6 +141,8 @@ for licenses
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -174,6 +178,13 @@ Expands to the list of license(s) for the matched package.
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -198,7 +209,7 @@ Flatsize of the package (type integer)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified pkg/pkg-search.8
@@ -15,7 +15,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -233,6 +233,9 @@ or
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -284,6 +287,7 @@ Show a standard set of fields, equivalent to a combination of the
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified pkg/pkgcli.h
@@ -182,21 +182,22 @@ void usage_ssh(void);
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -214,13 +215,14 @@ void usage_ssh(void);
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified pkg/query.c
@@ -54,8 +54,9 @@ static struct query_flags accepted_query_flags[] = {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -198,6 +199,9 @@ format_str(struct pkg *pkg, struct sbuf *dest, const char *qstr, void *data)
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -236,6 +240,9 @@ format_str(struct pkg *pkg, struct sbuf *dest, const char *qstr, void *data)
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -303,6 +310,13 @@ format_str(struct pkg *pkg, struct sbuf *dest, const char *qstr, void *data)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -358,6 +372,7 @@ print_query(struct pkg *pkg, char *qstr, char multiline)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -426,6 +441,12 @@ print_query(struct pkg *pkg, char *qstr, char multiline)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -566,6 +587,9 @@ format_sql_condition(const char *str, struct sbuf *sqlcond, bool for_remote)
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
modified pkg/rquery.c
@@ -50,8 +50,9 @@ static struct query_flags accepted_rquery_flags[] = {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified pkg/search.c
@@ -53,6 +53,7 @@ static const cliopt search_label[] = {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -138,6 +139,9 @@ modifier_opt(const char *optionarg)
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
modified pkg/utils.c
@@ -2,7 +2,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -183,6 +183,8 @@ info_flags(unsigned int opt)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -196,15 +198,17 @@ info_flags(unsigned int opt)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -214,15 +218,16 @@ info_flags(unsigned int opt)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -432,6 +437,16 @@ print_info(struct pkg * const pkg, unsigned int options)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|