1 |
commit: 1def9d468742c0d6d6b24aa1f1d76243be6e24cd |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 3 11:49:41 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 3 11:49:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=1def9d46 |
7 |
|
8 |
qlist: improve documentation |
9 |
|
10 |
Bug: https://bugs.gentoo.org/645554 |
11 |
|
12 |
man/include/qlist.desc | 6 +++++ |
13 |
man/include/qlist.optdesc.yaml | 24 ++++++++++++++++++ |
14 |
man/qlist.1 | 56 +++++++++++++++++++++++++++--------------- |
15 |
qlist.c | 2 +- |
16 |
4 files changed, 67 insertions(+), 21 deletions(-) |
17 |
|
18 |
diff --git a/man/include/qlist.desc b/man/include/qlist.desc |
19 |
new file mode 100644 |
20 |
index 0000000..e02d971 |
21 |
--- /dev/null |
22 |
+++ b/man/include/qlist.desc |
23 |
@@ -0,0 +1,6 @@ |
24 |
+\fIqlist\fR shows the contents, or a subset thereof, of an installed |
25 |
+package. Alternatively, lists whether a package is installed, |
26 |
+optionally with version, USE-flag, SLOT or REPO information. The |
27 |
+\fIpkgname\fR to query for does not have to be an exact match, it may be |
28 |
+part of it, e.g.\ an entire category, or any package with some string in |
29 |
+its name. |
30 |
|
31 |
diff --git a/man/include/qlist.optdesc.yaml b/man/include/qlist.optdesc.yaml |
32 |
new file mode 100644 |
33 |
index 0000000..a60ef0d |
34 |
--- /dev/null |
35 |
+++ b/man/include/qlist.optdesc.yaml |
36 |
@@ -0,0 +1,24 @@ |
37 |
+installed: | |
38 |
+ Instead of listing the contents of a package, just print the package |
39 |
+ name if the package is currently installed. |
40 |
+umap: | |
41 |
+ List USE-flags enabled when the package was installed. This flag |
42 |
+ implies \fB\-I\fR. |
43 |
+slot: | |
44 |
+ Display installed packages with slots (use twice for subslots). |
45 |
+ This flag implies \fB\-I\fR. |
46 |
+repo: | |
47 |
+ Display installed packages with repository the ebuild originated from. |
48 |
+ This flag implies \fB\-I\fR. |
49 |
+columns: | |
50 |
+ Like \fB\-Iv\fR, but package name and version are separated by a |
51 |
+ space for easy consumption by e.g.\ shell scripts which can read |
52 |
+ space-separated columns. |
53 |
+verbose: | |
54 |
+ When used with \fB\-I\fR, print the package version next to name. |
55 |
+ When listing the package contents, a single \fB\-v\fR displays |
56 |
+ symlinks with an arrow (\->) to their target. Two or more \fB\-v\fR |
57 |
+ adds colour to the entries and prints like \fB\-I\fR before the |
58 |
+ listing. |
59 |
+quiet: | |
60 |
+ Suppresses the parenthesis around the USE-flags when used with \fB\-U\fR. |
61 |
|
62 |
diff --git a/man/qlist.1 b/man/qlist.1 |
63 |
index 05e9326..f7dd847 100644 |
64 |
--- a/man/qlist.1 |
65 |
+++ b/man/qlist.1 |
66 |
@@ -1,68 +1,84 @@ |
67 |
-.TH qlist "1" "Mar 2016" "Gentoo Foundation" "qlist" |
68 |
+.\" generated by mkman.py, please do NOT edit! |
69 |
+.TH qlist "1" "Apr 2018" "Gentoo Foundation" "qlist" |
70 |
.SH NAME |
71 |
qlist \- list files owned by pkgname |
72 |
.SH SYNOPSIS |
73 |
.B qlist |
74 |
\fI[opts] <pkgname>\fR |
75 |
.SH DESCRIPTION |
76 |
- |
77 |
+\fIqlist\fR shows the contents, or a subset thereof, of an installed |
78 |
+package. Alternatively, lists whether a package is installed, |
79 |
+optionally with version, USE-flag, SLOT or REPO information. The |
80 |
+\fIpkgname\fR to query for does not have to be an exact match, it may be |
81 |
+part of it, e.g.\ an entire category, or any package with some string in |
82 |
+its name. |
83 |
.SH OPTIONS |
84 |
.TP |
85 |
\fB\-I\fR, \fB\-\-installed\fR |
86 |
-Just show installed packages |
87 |
+Instead of listing the contents of a package, just print the package |
88 |
+name if the package is currently installed. |
89 |
.TP |
90 |
\fB\-S\fR, \fB\-\-slots\fR |
91 |
-Display installed packages with slots (use twice for subslots) |
92 |
+Display installed packages with slots (use twice for subslots). |
93 |
.TP |
94 |
\fB\-R\fR, \fB\-\-repo\fR |
95 |
-Display installed packages with repository |
96 |
+Display installed packages with repository the ebuild originated from. |
97 |
+This flag implies \fB\-I\fR. |
98 |
.TP |
99 |
\fB\-U\fR, \fB\-\-umap\fR |
100 |
-Display installed packages with flags used |
101 |
+List USE-flags enabled when the package was installed. This flag |
102 |
+implies \fB\-I\fR. |
103 |
.TP |
104 |
\fB\-c\fR, \fB\-\-columns\fR |
105 |
-Display column view |
106 |
+Like \fB\-Iv\fR, but package name and version are separated by a |
107 |
+space for easy consumption by e.g.\ shell scripts which can read |
108 |
+space-separated columns. |
109 |
.TP |
110 |
\fB\-\-showdebug\fR |
111 |
-Show /usr/lib/debug files |
112 |
+Show /usr/lib/debug and /usr/src/debug files. |
113 |
.TP |
114 |
\fB\-e\fR, \fB\-\-exact\fR |
115 |
-Exact match (only CAT/PN or PN without PV) |
116 |
+Exact match (only CAT/PN or PN without PV). |
117 |
.TP |
118 |
\fB\-a\fR, \fB\-\-all\fR |
119 |
-Show every installed package |
120 |
+Show every installed package. |
121 |
.TP |
122 |
\fB\-d\fR, \fB\-\-dir\fR |
123 |
-Only show directories |
124 |
+Only show directories. |
125 |
.TP |
126 |
\fB\-o\fR, \fB\-\-obj\fR |
127 |
-Only show objects |
128 |
+Only show objects. |
129 |
.TP |
130 |
\fB\-s\fR, \fB\-\-sym\fR |
131 |
-Only show symlinks |
132 |
+Only show symlinks. |
133 |
.TP |
134 |
\fB\-\-root\fR \fI<arg>\fR |
135 |
-Set the ROOT env var |
136 |
+Set the ROOT env var. |
137 |
.TP |
138 |
\fB\-v\fR, \fB\-\-verbose\fR |
139 |
-Make a lot of noise |
140 |
+When used with \fB\-I\fR, print the package version next to name. |
141 |
+When listing the package contents, a single \fB\-v\fR displays |
142 |
+symlinks with an arrow (\->) to their target. Two or more \fB\-v\fR |
143 |
+adds colour to the entries and prints like \fB\-I\fR before the |
144 |
+listing. |
145 |
.TP |
146 |
\fB\-q\fR, \fB\-\-quiet\fR |
147 |
-Tighter output; suppress warnings |
148 |
+Suppresses the parenthesis around the USE-flags when used with \fB\-U\fR. |
149 |
.TP |
150 |
\fB\-C\fR, \fB\-\-nocolor\fR |
151 |
-Don't output color |
152 |
+Don't output color. |
153 |
.TP |
154 |
\fB\-h\fR, \fB\-\-help\fR |
155 |
-Print this help and exit |
156 |
+Print this help and exit. |
157 |
.TP |
158 |
\fB\-V\fR, \fB\-\-version\fR |
159 |
-Print version and exit |
160 |
+Print version and exit. |
161 |
|
162 |
.SH "REPORTING BUGS" |
163 |
Please report bugs via http://bugs.gentoo.org/ |
164 |
.br |
165 |
-Product: Portage Development; Component: Tools |
166 |
+Product: Portage Development; Component: Tools, Assignee: |
167 |
+portage-utils@g.o |
168 |
.SH AUTHORS |
169 |
.nf |
170 |
Ned Ludd <solar@g.o> |
171 |
|
172 |
diff --git a/qlist.c b/qlist.c |
173 |
index 1f8757c..6b5eb0a 100644 |
174 |
--- a/qlist.c |
175 |
+++ b/qlist.c |
176 |
@@ -31,7 +31,7 @@ static const char * const qlist_opts_help[] = { |
177 |
"Display installed packages with repository", |
178 |
"Display installed packages with flags used", |
179 |
"Display column view", |
180 |
- "Show /usr/lib/debug files", |
181 |
+ "Show /usr/lib/debug and /usr/src/debug files", |
182 |
"Exact match (only CAT/PN or PN without PV)", |
183 |
"Show every installed package", |
184 |
"Only show directories", |