Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Merge pull request #205 from bdrewery/pkg-query-fixes
Marin Atanasov Nikolov committed 14 years ago
commit 3b63cab1b8a7a563981c75e6e92f87e1e2c6469d
parent 10d705e10f91cf0826c398a8d58ec6c6e6c8a314
2 files changed +7 -3
modified pkg/pkg-query.8
@@ -40,6 +40,10 @@ The following options are supported by
.Bl -tag -width F1
.It Fl a
Match all packages from the database
+
.It Fl e
+
Match packages using the given
+
.Ar evaluation-condition.
+
See EVALUATION FORMAT for details.
.It Fl F Ar pkg-name
Display information only for the package file
.Ar pkg-name
@@ -73,7 +77,7 @@ Prefix of the matched package
Maintainer of the matched package
.It Cm \&%c
Comment of the matched package
-
.It cm \&%i
+
.It Cm \&%i
Additionnal information about the package
.It Cm \&%w
Home page of the matched package
@@ -87,7 +91,7 @@ The flat size in bytes of the matched package
Returns 1 if the matched package is an orphan package and can be pkg-autoremove(1)'d, 0 otherwise
.It Cm \&%M
message contain in the matched package
-
.It Cm \&%? Ns Op drCFIDLUG
+
.It Cm \&%? Ns Op drCFODLUGB
Returns 0 if the list is empty and 1 if the list has information to display
.Bl -tag -width indent
.It Cm d
modified pkg/query.c
@@ -57,7 +57,7 @@ static struct query_flags {
	{ 'U', "",		1, PKG_LOAD_USERS },
	{ 'G', "",		1, PKG_LOAD_GROUPS },
	{ 'B', "",		1, PKG_LOAD_SHLIBS },
-
	{ '?', "drCFODLUGBK",	1, PKG_LOAD_BASIC },	/* dbflags handled in analyse_query_string() */
+
	{ '?', "drCFODLUGB",	1, PKG_LOAD_BASIC },	/* dbflags handled in analyse_query_string() */
	{ 's', "hb",		0, PKG_LOAD_BASIC }, 
	{ 'n', "",		0, PKG_LOAD_BASIC },
	{ 'v', "",		0, PKG_LOAD_BASIC },