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