From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CF7D4138334 for ; Wed, 12 Jun 2019 09:13:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03FB4E091C; Wed, 12 Jun 2019 09:13:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD407E091C for ; Wed, 12 Jun 2019 09:13:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A3FFF345F13 for ; Wed, 12 Jun 2019 09:13:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ABDCCA8 for ; Wed, 12 Jun 2019 09:13:25 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1560330448.a7ff20f634939e5766cd962bb51234cd0644b5d1.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: man/ X-VCS-Repository: proj/portage-utils X-VCS-Files: man/mkman.py X-VCS-Directories: man/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: a7ff20f634939e5766cd962bb51234cd0644b5d1 X-VCS-Branch: master Date: Wed, 12 Jun 2019 09:13:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a2c33754-848c-4b4f-a2ff-fa1d18644dac X-Archives-Hash: 20220e5f96ebf0d9bc86a5e82e33f7ea commit: a7ff20f634939e5766cd962bb51234cd0644b5d1 Author: Fabian Groffen gentoo org> AuthorDate: Wed Jun 12 09:07:28 2019 +0000 Commit: Fabian Groffen gentoo 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 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 : 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)