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 769E11382C5 for ; Wed, 25 Apr 2018 10:32:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E466E09AE; Wed, 25 Apr 2018 10:32:38 +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 5C245E09AE for ; Wed, 25 Apr 2018 10:32:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 155D3335C2E for ; Wed, 25 Apr 2018 10:32:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 44CF327E for ; Wed, 25 Apr 2018 10:32:35 +0000 (UTC) From: "Mart Raudsepp" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mart Raudsepp" Message-ID: <1524652337.d78f89c5d2f0c86812bbf60cdd77d9bece5ec830.leio@gentoo> Subject: [gentoo-commits] proj/gnome:master commit in: scripts/ X-VCS-Repository: proj/gnome X-VCS-Files: scripts/gen_archlist.py X-VCS-Directories: scripts/ X-VCS-Committer: leio X-VCS-Committer-Name: Mart Raudsepp X-VCS-Revision: d78f89c5d2f0c86812bbf60cdd77d9bece5ec830 X-VCS-Branch: master Date: Wed, 25 Apr 2018 10:32:35 +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-Archives-Salt: 28f92a65-cd9e-476b-8587-be65781760d9 X-Archives-Hash: a5e2e139b4cf3748697b67af609faa7a commit: d78f89c5d2f0c86812bbf60cdd77d9bece5ec830 Author: Mart Raudsepp gentoo org> AuthorDate: Wed Apr 25 10:31:21 2018 +0000 Commit: Mart Raudsepp gentoo org> CommitDate: Wed Apr 25 10:32:17 2018 +0000 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=d78f89c5 scripts/gen_archlist: Hack it to work with python3 As this is just a workaround, not a properly handled port, keep the shebang to python2 for now, but can at least run it via python3 ./gen_archlist.py now when not having python2 portage. scripts/gen_archlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_archlist.py b/scripts/gen_archlist.py index 2d713180..746255f9 100755 --- a/scripts/gen_archlist.py +++ b/scripts/gen_archlist.py @@ -437,7 +437,7 @@ def main(): ' to be stabilized') args = parser.parse_args() - args.verbose = min(max(args.verbose, 0), 2) + args.verbose = min(max(args.verbose if args.verbose else 0, 0), 2) logging.config.dictConfig({ 'version': 1, 'disable_existing_loggers': True,