1 |
commit: ea69f8fc6eb1e1ee71eea57b938eac631dedb4de |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 3 13:39:15 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 3 13:39:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=ea69f8fc |
7 |
|
8 |
qsize: improve documentation |
9 |
|
10 |
Bug: https://bugs.gentoo.org/645554 |
11 |
|
12 |
man/include/qpkg.optdesc.yaml | 2 +- |
13 |
man/qsize.1 | 37 +++++++++++++++++++++---------------- |
14 |
qsize.c | 6 +++--- |
15 |
3 files changed, 25 insertions(+), 20 deletions(-) |
16 |
|
17 |
diff --git a/man/include/qpkg.optdesc.yaml b/man/include/qpkg.optdesc.yaml |
18 |
index 2da2810..62c0b52 100644 |
19 |
--- a/man/include/qpkg.optdesc.yaml |
20 |
+++ b/man/include/qpkg.optdesc.yaml |
21 |
@@ -1,2 +1,2 @@ |
22 |
verbose: Check and report MD5 hash mismatches during install. |
23 |
-quiet: Ignored for compatability with other qapplets. |
24 |
+quiet: Ignored for compatibility with other qapplets. |
25 |
|
26 |
diff --git a/man/qsize.1 b/man/qsize.1 |
27 |
index aa613f8..a734afd 100644 |
28 |
--- a/man/qsize.1 |
29 |
+++ b/man/qsize.1 |
30 |
@@ -1,56 +1,61 @@ |
31 |
-.TH qsize "1" "Mar 2016" "Gentoo Foundation" "qsize" |
32 |
+.\" generated by mkman.py, please do NOT edit! |
33 |
+.TH qsize "1" "Apr 2018" "Gentoo Foundation" "qsize" |
34 |
.SH NAME |
35 |
qsize \- calculate size usage |
36 |
.SH SYNOPSIS |
37 |
.B qsize |
38 |
\fI[opts] <pkgname>\fR |
39 |
.SH DESCRIPTION |
40 |
- |
41 |
+\fIqsize\fR calculates the storage size taken by an installed package. |
42 |
+The reported sizes can be the recorded exact sizes of all files, or the |
43 |
+storage space they consume given the underlying filesystem. |
44 |
.SH OPTIONS |
45 |
.TP |
46 |
\fB\-f\fR, \fB\-\-filesystem\fR |
47 |
-Show size used on disk |
48 |
+Show size used on disk. |
49 |
.TP |
50 |
\fB\-s\fR, \fB\-\-sum\fR |
51 |
-Include a summary |
52 |
+Include a summary. |
53 |
.TP |
54 |
\fB\-S\fR, \fB\-\-sum\-only\fR |
55 |
-Show just the summary |
56 |
+Show just the summary. |
57 |
.TP |
58 |
\fB\-m\fR, \fB\-\-megabytes\fR |
59 |
-Display size in megabytes |
60 |
+Display all sizes in megabytes. |
61 |
.TP |
62 |
\fB\-k\fR, \fB\-\-kilobytes\fR |
63 |
-Display size in kilobytes |
64 |
+Display all sizes in kilobytes. |
65 |
.TP |
66 |
\fB\-b\fR, \fB\-\-bytes\fR |
67 |
-Display size in bytes |
68 |
+Display all sizes in bytes. |
69 |
.TP |
70 |
\fB\-i\fR \fI<arg>\fR, \fB\-\-ignore\fR \fI<arg>\fR |
71 |
-Ignore regexp string |
72 |
+Filter out entries matching \fI<arg>\fR, which is a regular |
73 |
+expression, before calculating size. |
74 |
.TP |
75 |
\fB\-\-root\fR \fI<arg>\fR |
76 |
-Set the ROOT env var |
77 |
+Set the ROOT env var. |
78 |
.TP |
79 |
\fB\-v\fR, \fB\-\-verbose\fR |
80 |
-Make a lot of noise |
81 |
+Ignored for compatibility with other qapplets. |
82 |
.TP |
83 |
\fB\-q\fR, \fB\-\-quiet\fR |
84 |
-Tighter output; suppress warnings |
85 |
+Ignored for compatibility with other qapplets. |
86 |
.TP |
87 |
\fB\-C\fR, \fB\-\-nocolor\fR |
88 |
-Don't output color |
89 |
+Don't output color. |
90 |
.TP |
91 |
\fB\-h\fR, \fB\-\-help\fR |
92 |
-Print this help and exit |
93 |
+Print this help and exit. |
94 |
.TP |
95 |
\fB\-V\fR, \fB\-\-version\fR |
96 |
-Print version and exit |
97 |
+Print version and exit. |
98 |
|
99 |
.SH "REPORTING BUGS" |
100 |
Please report bugs via http://bugs.gentoo.org/ |
101 |
.br |
102 |
-Product: Portage Development; Component: Tools |
103 |
+Product: Portage Development; Component: Tools, Assignee: |
104 |
+portage-utils@g.o |
105 |
.SH AUTHORS |
106 |
.nf |
107 |
Ned Ludd <solar@g.o> |
108 |
|
109 |
diff --git a/qsize.c b/qsize.c |
110 |
index c485aa6..78b8f88 100644 |
111 |
--- a/qsize.c |
112 |
+++ b/qsize.c |
113 |
@@ -23,9 +23,9 @@ static const char * const qsize_opts_help[] = { |
114 |
"Show size used on disk", |
115 |
"Include a summary", |
116 |
"Show just the summary", |
117 |
- "Display size in megabytes", |
118 |
- "Display size in kilobytes", |
119 |
- "Display size in bytes", |
120 |
+ "Display all sizes in megabytes", |
121 |
+ "Display all sizes in kilobytes", |
122 |
+ "Display all sizes in bytes", |
123 |
"Ignore regexp string", |
124 |
COMMON_OPTS_HELP |
125 |
}; |