commit:     3a525dc69bf6c74d901da80f13af689b0198557c
Author:     Emanuele Torre <torreemanuele6 <AT> gmail <DOT> com>
AuthorDate: Wed Sep  4 08:59:57 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Sep  5 11:28:38 2024 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=3a525dc6

man: fix -S/--slots option description in qlist.1

I noticed that the qlist(1) man page did not mention that -S implies -I,
so I wanted to fix that.

The man page was actually supposed to mention it, but
man/include/qlist.optdesc.yaml was incorrectly using the "slot" key to
define --slots's long description, so the man page ended up using the
short description from  q list --help  instead of the longer description
that contains "This flag implies -I.".

Renaming the key in the yaml file from "slot" to "slots" fixed the
problem.

I have regenerated the man pages with man/mkman.py, but only included
the new version of qlist.1 in this commit.

Signed-off-by: Emanuele Torre <torreemanuele6 <AT> gmail.com>
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 man/include/qlist.optdesc.yaml | 2 +-
 man/qlist.1                    | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/man/include/qlist.optdesc.yaml b/man/include/qlist.optdesc.yaml
index 1145fa9..0ae0700 100644
--- a/man/include/qlist.optdesc.yaml
+++ b/man/include/qlist.optdesc.yaml
@@ -8,7 +8,7 @@ tree: |
 umap: |
     List USE-flags enabled when the package was installed.  This flag
     implies \fB\-I\fR.
-slot: |
+slots: |
     Display installed packages with slots (use twice for subslots).
     This flag implies \fB\-I\fR.
 repo: |

diff --git a/man/qlist.1 b/man/qlist.1
index 9fe7194..e0e9e81 100644
--- a/man/qlist.1
+++ b/man/qlist.1
@@ -1,5 +1,5 @@
 .\" generated by mkman.py, please do NOT edit!
-.TH qlist "1" "Jan 2024" "Gentoo Foundation" "qlist"
+.TH qlist "1" "Sep 2024" "Gentoo Foundation" "qlist"
 .SH NAME
 qlist \- list files owned by pkgname
 .SH SYNOPSIS
@@ -27,6 +27,7 @@ Used with \fB\-I\fR to list packages available in the tree.
 .TP
 \fB\-S\fR, \fB\-\-slots\fR
 Display installed packages with slots (use twice for subslots).
+This flag implies \fB\-I\fR.
 .TP
 \fB\-R\fR, \fB\-\-repo\fR
 Display installed packages with repository the ebuild originated from.

Reply via email to