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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D09C6158009 for ; Thu, 29 Jun 2023 15:41:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EBDFCE0788; Thu, 29 Jun 2023 15:41:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CC595E0788 for ; Thu, 29 Jun 2023 15:41:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC3D2335DCC for ; Thu, 29 Jun 2023 15:41:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A2658DC for ; Thu, 29 Jun 2023 15:41:05 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1688053088.5f1dc5c1d7e2c26cb7ce3353782d472e65a287c3.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: src/pkgcheck/scripts/ X-VCS-Repository: proj/pkgcore/pkgcheck X-VCS-Files: src/pkgcheck/scripts/pkgcheck_scan.py X-VCS-Directories: src/pkgcheck/scripts/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 5f1dc5c1d7e2c26cb7ce3353782d472e65a287c3 X-VCS-Branch: master Date: Thu, 29 Jun 2023 15:41:05 +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: d7f70e54-e015-41c6-a073-da0e65cc57ea X-Archives-Hash: 46b8be0212dc6e6b09607b09cd7211cc commit: 5f1dc5c1d7e2c26cb7ce3353782d472e65a287c3 Author: Arthur Zamarin gentoo org> AuthorDate: Thu Jun 29 15:38:08 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Jun 29 15:38:08 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=5f1dc5c1 scan: fix unknown exit checkset during initial config load Similar to previous fix, `--exit`` also can accept checksets which come from args, so we also need to "escape" failures of ExitArgs. Follows: a2358d60680611d7cbe07068440031c3c6e68f31 Resolves: https://github.com/pkgcore/pkgcheck/issues/594 Signed-off-by: Arthur Zamarin gentoo.org> src/pkgcheck/scripts/pkgcheck_scan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pkgcheck/scripts/pkgcheck_scan.py b/src/pkgcheck/scripts/pkgcheck_scan.py index b83f569f..c04ff329 100644 --- a/src/pkgcheck/scripts/pkgcheck_scan.py +++ b/src/pkgcheck/scripts/pkgcheck_scan.py @@ -371,7 +371,9 @@ def _setup_scan(parser, namespace, args): # have to be parsed twice, will probably require a custom snakeoil # arghparse method. # parse command line args to override config defaults - with patch("pkgcheck.scripts.argparse_actions.ChecksetArgs.__call__", lambda *a, **k: None): + with patch( + "pkgcheck.scripts.argparse_actions.ChecksetArgs.__call__", lambda *a, **k: None + ), patch("pkgcheck.scripts.argparse_actions.ExitArgs.__call__", lambda *a, **k: None): namespace, _ = parser._parse_known_args(args, namespace) # Get the current working directory for repo detection and restriction