commit: ccadfa5149aa381ce155ce188944a22a015b6835 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Nov 26 18:58:18 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Dec 4 01:57:19 2025 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgdev.git/commit/?id=ccadfa51
Revert "bugs: --api-key is now required" This reverts commit bb724ed0d883b0dc7522fd263d1447d8aee348a7. Per request from Arthur on IRC. parona reported it isn't working correctly and doesn't handle the arg. [This got lost before as I pushed on the gh side...] Bug: https://github.com/pkgcore/pkgdev/issues/217 Signed-off-by: Sam James <sam <AT> gentoo.org> src/pkgdev/scripts/argparsers.py | 3 +-- src/pkgdev/scripts/pkgdev_bugs.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pkgdev/scripts/argparsers.py b/src/pkgdev/scripts/argparsers.py index 3ac378b..9ab58da 100644 --- a/src/pkgdev/scripts/argparsers.py +++ b/src/pkgdev/scripts/argparsers.py @@ -48,12 +48,11 @@ def _determine_git_repo(parser, namespace): class BugzillaApiKey: @classmethod - def mangle_argparser(cls, parser, required=False): + def mangle_argparser(cls, parser): parser.add_argument( "--api-key", metavar="TOKEN", help="Bugzilla API key", - required=required, docs=""" The Bugzilla API key to use for authentication. WARNING: using this option will expose your API key to other users of the same system. diff --git a/src/pkgdev/scripts/pkgdev_bugs.py b/src/pkgdev/scripts/pkgdev_bugs.py index 919326c..271c793 100644 --- a/src/pkgdev/scripts/pkgdev_bugs.py +++ b/src/pkgdev/scripts/pkgdev_bugs.py @@ -46,7 +46,7 @@ bugs = ArgumentParser( quiet=False, parents=(cwd_repo_argparser,), ) -BugzillaApiKey.mangle_argparser(bugs, required=True) +BugzillaApiKey.mangle_argparser(bugs) bugs.add_argument( "targets", metavar="target",
