From a7ff20f634939e5766cd962bb51234cd0644b5d1 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 12 Jun 2019 11:07:28 +0200 Subject: man/mkman: skip generation for applets that aren't enabled This just eases the situation with --disable-qmanifest. Signed-off-by: Fabian Groffen --- man/mkman.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'man') 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 : 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) -- cgit v1.2.3-65-gdbad