From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D747E1582EF for ; Wed, 05 Mar 2025 06:40:29 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id BF273342FAF for ; Wed, 05 Mar 2025 06:40:29 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id F292C1102D2; Wed, 05 Mar 2025 06:40:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id E73A81102D2 for ; Wed, 05 Mar 2025 06:40:25 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9638A340C76 for ; Wed, 05 Mar 2025 06:40:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03B922874 for ; Wed, 05 Mar 2025 06:40:24 +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: <1741156803.5ca22282ed13e651eae8d50fab19d8b6c7e443a4.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/pkgdev:main commit in: src/pkgdev/scripts/ X-VCS-Repository: proj/pkgcore/pkgdev X-VCS-Files: src/pkgdev/scripts/pkgdev_tatt.py X-VCS-Directories: src/pkgdev/scripts/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 5ca22282ed13e651eae8d50fab19d8b6c7e443a4 X-VCS-Branch: main Date: Wed, 05 Mar 2025 06:40:24 +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: 509fbc2c-a2f0-4a7f-b4cd-7389c4d8b8a5 X-Archives-Hash: ad0e7ae727c5dff3b77b000a280cfdc3 commit: 5ca22282ed13e651eae8d50fab19d8b6c7e443a4 Author: Arthur Zamarin gentoo org> AuthorDate: Wed Mar 5 06:36:05 2025 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed Mar 5 06:40:03 2025 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgdev.git/commit/?id=5ca22282 tatt: support --use-combos 0 (to be used with --test) Signed-off-by: Arthur Zamarin gentoo.org> src/pkgdev/scripts/pkgdev_tatt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pkgdev/scripts/pkgdev_tatt.py b/src/pkgdev/scripts/pkgdev_tatt.py index 5a76b54..65e3392 100644 --- a/src/pkgdev/scripts/pkgdev_tatt.py +++ b/src/pkgdev/scripts/pkgdev_tatt.py @@ -54,7 +54,7 @@ use_opts.add_argument( "-u", "--use-combos", default=0, - type=arghparse.positive_int, + type=int, metavar="NUMBER", help="Maximal number USE combinations to be tested", ) @@ -197,6 +197,8 @@ def _tatt_validate(parser, namespace): @tatt.bind_final_check def _validate_args(parser, namespace): + if namespace.use_combos < 0: + parser.error("number of use combos must be non-negative") if namespace.bug is not None: if namespace.keywording is not None: parser.error("cannot use --bug with --keywording or --stablereq")