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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 577A71581D3 for ; Fri, 31 May 2024 11:13:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CEB7E2A1C; Fri, 31 May 2024 11:13:23 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3F1CBE2A1C for ; Fri, 31 May 2024 11:13:23 +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 6726633BE3B for ; Fri, 31 May 2024 11:13:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EF071148D for ; Fri, 31 May 2024 11:13:20 +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: <1717153988.e9f38cd0ce2b1eda130634f8569f5521c2c6511d.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_mask.py X-VCS-Directories: src/pkgdev/scripts/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: e9f38cd0ce2b1eda130634f8569f5521c2c6511d X-VCS-Branch: main Date: Fri, 31 May 2024 11:13:20 +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: c9af592b-7852-4d8a-9125-31a9cb705a1a X-Archives-Hash: c3b7af1848125125476c624d3c7cafcf commit: e9f38cd0ce2b1eda130634f8569f5521c2c6511d Author: Arthur Zamarin gentoo org> AuthorDate: Fri May 31 11:13:08 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri May 31 11:13:08 2024 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgdev.git/commit/?id=e9f38cd0 mask: support comma separated bugs Signed-off-by: Arthur Zamarin gentoo.org> src/pkgdev/scripts/pkgdev_mask.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pkgdev/scripts/pkgdev_mask.py b/src/pkgdev/scripts/pkgdev_mask.py index 041eef1..1d614a0 100644 --- a/src/pkgdev/scripts/pkgdev_mask.py +++ b/src/pkgdev/scripts/pkgdev_mask.py @@ -61,9 +61,10 @@ mask_opts.add_argument( mask_opts.add_argument( "-b", "--bug", + "--bugs", dest="bugs", - action="append", - type=arghparse.positive_int, + action=arghparse.CommaSeparatedValuesAppend, + default=[], help="reference bug in the mask comment", docs=""" Add a reference to a bug in the mask comment. May be specified multiple @@ -100,6 +101,8 @@ def _mask_validate(parser, namespace): atoms = set() maintainers = set() + namespace.bugs = list(map(int, dict.fromkeys(namespace.bugs))) + if not namespace.rites and namespace.file_bug: mask.error("bug filing requires last rites") if namespace.file_bug and not namespace.api_key: