Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
implement query expression %#[drCFODLUGB] to query number of elements of information.
Rolf Grossmann committed 13 years ago
commit 707775fa80ae88ed6b717aceee182cd1692eee3d
parent ba196d8
2 files changed +6 -1
modified pkg/pkg-query.8
@@ -205,6 +205,11 @@ Message of the package (type string)
Timestamp that the package was installed (type integer)
.It Cm \&%i
Additionnal information about the package (type string)
+
.It Cm \&%# Ns Op drCFODLUGB
+
Number of elements in the list of information (type integer).
+
See
+
.Cm %?
+
above for what information is used.
.El
.Ss Operators
.Bl -tag -width F1
modified pkg/query.c
@@ -493,7 +493,7 @@ format_sql_condition(const char *str, struct sbuf *sqlcond, bool for_remote)
								sbuf_printf(sqlcond, "(SELECT COUNT(*) FROM %spkg_shlibs AS d WHERE d.package_id=p.id)", dbstr);
								break;
							default:
-
								fprintf(stderr, "malformed evaluation string\n");
+
								fprintf(stderr, "malformed evaluation string");
								return (EPKG_FATAL);
						}
						state = OPERATOR_INT;