[yum-commits] docs/show-installed.1 show-installed.py

Ville Skyttä scop at osuosl.org
Tue Feb 22 19:51:08 UTC 2011


 docs/show-installed.1 |    3 +--
 show-installed.py     |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 253ef7d60bf8f76bb345d705d270ba3c18f4b19e
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Feb 22 21:49:15 2011 +0200

    Fix "rpm -qa" example formatting for show-installed -i in --help output and man page.

diff --git a/docs/show-installed.1 b/docs/show-installed.1
index 4ce248b..7072b63 100644
--- a/docs/show-installed.1
+++ b/docs/show-installed.1
@@ -16,8 +16,7 @@ show this help message and exit
 yum, kickstart or human; yum gives the result as a yum command line; kickstart the content of a %packages section; "human" readable is default.
 .TP
 .B \-i INPUT, \-\-input=INPUT
-File to read the package list from instead of using the rpmdb. \- for stdin. The file must contain package names only separated by white space (including newlines). rpm \-qa \-\-qf='%{name}
-' produces proper output.
+File to read the package list from instead of using the rpmdb. \- for stdin. The file must contain package names only separated by white space (including newlines). rpm \-qa \-\-qf='%{name}\\n' produces proper output.
 .TP
 .B \-o OUTPUT, \-\-output=OUTPUT
 File to write the result to. Stdout is used if option is omited.
diff --git a/show-installed.py b/show-installed.py
index 31a6ff7..737f97e 100755
--- a/show-installed.py
+++ b/show-installed.py
@@ -359,7 +359,7 @@ def __main__():
     parser.add_option("-f", "--format", dest="format",
                      choices=('kickstart','human','yum'), default="human",
                      help='yum, kickstart or human; yum gives the result as a yum command line; kickstart the content of a %packages section; "human" readable is default.')
-    parser.add_option("-i", "--input", dest="input", action="store", default=None, help="File to read the package list from instead of using the rpmdb. - for stdin. The file must contain package names only separated by white space (including newlines). rpm -qa --qf='%{name}\n' produces proper output.")
+    parser.add_option("-i", "--input", dest="input", action="store", default=None, help="File to read the package list from instead of using the rpmdb. - for stdin. The file must contain package names only separated by white space (including newlines). rpm -qa --qf='%{name}\\n' produces proper output.")
     parser.add_option("-o", "--output", dest="output", action="store", default=None, help="File to write the result to. Stdout is used if option is omited.")
     parser.add_option("-q", "--quiet", dest="quiet", action="store_true", help="Do not show warnings.")
     parser.add_option("-e", "--no-excludes", dest="excludes",


More information about the Yum-commits mailing list