From d190c49b79ab4ed6761b637843a9f9c9622f6339 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: May 18 2025 22:27:02 +0000 Subject: Add unspecified update type [1] https://github.com/fedora-infra/bodhi/pull/3047 [2] https://github.com/fedora-infra/bodhi/pull/5892 Signed-off-by: LuK1337 --- diff --git a/conf/bash-completion/fedpkg.bash b/conf/bash-completion/fedpkg.bash index 9b87235..5a8cc0d 100644 --- a/conf/bash-completion/fedpkg.bash +++ b/conf/bash-completion/fedpkg.bash @@ -323,7 +323,7 @@ _fedpkg() COMPREPLY=( $(compgen -W "$(_fedpkg_namespaces)" -- "$cur") ) elif [[ -n $options_update_type ]] && in_array "$prev" "$options_update_type"; then - COMPREPLY=( $(compgen -W "bugfix security enhancement newpackage" -- "$cur") ) + COMPREPLY=( $(compgen -W "bugfix security enhancement newpackage unspecified" -- "$cur") ) elif [[ -n $options_update_request ]] && in_array "$prev" "$options_update_request"; then COMPREPLY=( $(compgen -W "testing stable" -- "$cur") ) diff --git a/fedpkg/cli.py b/fedpkg/cli.py index e5ed34b..cf8915f 100644 --- a/fedpkg/cli.py +++ b/fedpkg/cli.py @@ -52,7 +52,7 @@ LOCAL_PACKAGE_CONFIG = 'package.cfg' BODHI_TEMPLATE = """\ [ %(nvr)s ] -# bugfix, security, enhancement, newpackage (required) +# bugfix, security, enhancement, newpackage, unspecified (required) type=%(type_)s # testing, stable @@ -207,7 +207,7 @@ class fedpkgClient(cliClient): update_parser.add_argument( '--type', - choices=['bugfix', 'security', 'enhancement', 'newpackage'], + choices=['bugfix', 'security', 'enhancement', 'newpackage', 'unspecified'], dest='update_type', help='Update type. Template editor will be shown if type is ' 'omitted.')