commit: a7ff20f634939e5766cd962bb51234cd0644b5d1
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 12 09:07:28 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jun 12 09:07:28 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=a7ff20f6
man/mkman: skip generation for applets that aren't enabled
This just eases the situation with --disable-qmanifest.
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
man/mkman.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/man/mkman.py b/man/mkman.py
index ff11e0b..a1b68a7 100755
--- a/man/mkman.py
+++ b/man/mkman.py
@@ -64,7 +64,10 @@ def MkMan(applets, applet, output):
# Extract the main use string and description:
# Usage: q <applet> <args> : invoke a portage utility applet
- ahelp = subprocess.check_output([Q, applet, '--help']).decode('ascii')
+ try:
+ ahelp = subprocess.check_output([Q, applet, '--help']).decode('ascii')
+ except:
+ return
lines = ahelp.splitlines()
m = re.search(r'^Usage: %s (.*) : (.*)' % applet, ahelp)
usage = m.group(1)