Skip to content

Commit 5ca2228

Browse files
committed
tatt: support --use-combos 0 (to be used with --test)
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent cc1f1c6 commit 5ca2228

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/pkgdev/scripts/pkgdev_tatt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"-u",
5555
"--use-combos",
5656
default=0,
57-
type=arghparse.positive_int,
57+
type=int,
5858
metavar="NUMBER",
5959
help="Maximal number USE combinations to be tested",
6060
)
@@ -197,6 +197,8 @@ def _tatt_validate(parser, namespace):
197197

198198
@tatt.bind_final_check
199199
def _validate_args(parser, namespace):
200+
if namespace.use_combos < 0:
201+
parser.error("number of use combos must be non-negative")
200202
if namespace.bug is not None:
201203
if namespace.keywording is not None:
202204
parser.error("cannot use --bug with --keywording or --stablereq")

0 commit comments

Comments
 (0)