aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-06-12 11:07:28 +0200
committerFabian Groffen <grobian@gentoo.org>2019-06-12 11:07:28 +0200
commita7ff20f634939e5766cd962bb51234cd0644b5d1 (patch)
tree46948954d88450d65db1a44b2bb34f661566120f
parentqcheck: fix atom_compare call (diff)
downloadportage-utils-a7ff20f634939e5766cd962bb51234cd0644b5d1.tar.gz
portage-utils-a7ff20f634939e5766cd962bb51234cd0644b5d1.tar.bz2
portage-utils-a7ff20f634939e5766cd962bb51234cd0644b5d1.zip
man/mkman: skip generation for applets that aren't enabled
This just eases the situation with --disable-qmanifest. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xman/mkman.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/man/mkman.py b/man/mkman.py
index ff11e0bd..a1b68a77 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)