commit: 5ca22282ed13e651eae8d50fab19d8b6c7e443a4
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 5 06:36:05 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> 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 <arthurzam <AT> 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")