@ -467,12 +467,15 @@ class GalaxyCLI(CLI):
valid_signature_count_help = ' The number of signatures that must successfully verify the collection. This should be a positive integer ' \
' or all to signify that all signatures must be used to verify the collection. ' \
' Prepend the value with + to fail if no valid signatures are found for the collection (e.g. +all). '
ignore_gpg_status_help = ' A s tatus code to ignore during signature verification (for example, NO_PUBKEY). ' \
' Provide this option multiple times to ignore a list of status codes. ' \
' Descriptions for the choices can be seen at L(https://github.com/gpg/gnupg/blob/master/doc/DETAILS#general-status-codes) .'
ignore_gpg_status_help = ' A s pace separated list of s tatus codes to ignore during signature verification (for example, NO_PUBKEY FAILURE ). ' \
' Descriptions for the choices can be seen at L(https://github.com/gpg/gnupg/blob/master/doc/DETAILS#general-status-codes). ' \
' Note: specify these after positional arguments or use -- to separate them .'
verify_parser . add_argument ( ' --required-valid-signature-count ' , dest = ' required_valid_signature_count ' , type = validate_signature_count ,
help = valid_signature_count_help , default = C . GALAXY_REQUIRED_VALID_SIGNATURE_COUNT )
verify_parser . add_argument ( ' --ignore-signature-status-code ' , dest = ' ignore_gpg_errors ' , type = str , action = ' append ' ,
help = opt_help . argparse . SUPPRESS , default = C . GALAXY_IGNORE_INVALID_SIGNATURE_STATUS_CODES ,
choices = list ( GPG_ERROR_MAP . keys ( ) ) )
verify_parser . add_argument ( ' --ignore-signature-status-codes ' , dest = ' ignore_gpg_errors ' , type = str , action = ' extend ' , nargs = ' + ' ,
help = ignore_gpg_status_help , default = C . GALAXY_IGNORE_INVALID_SIGNATURE_STATUS_CODES ,
choices = list ( GPG_ERROR_MAP . keys ( ) ) )
@ -508,9 +511,9 @@ class GalaxyCLI(CLI):
valid_signature_count_help = ' The number of signatures that must successfully verify the collection. This should be a positive integer ' \
' or -1 to signify that all signatures must be used to verify the collection. ' \
' Prepend the value with + to fail if no valid signatures are found for the collection (e.g. +all). '
ignore_gpg_status_help = ' A s tatus code to ignore during signature verification (for example, NO_PUBKEY). ' \
' Provide this option multiple times to ignore a list of status codes. ' \
' Descriptions for the choices can be seen at L(https://github.com/gpg/gnupg/blob/master/doc/DETAILS#general-status-codes) .'
ignore_gpg_status_help = ' A s pace separated list of s tatus codes to ignore during signature verification (for example, NO_PUBKEY FAILURE ). ' \
' Descriptions for the choices can be seen at L(https://github.com/gpg/gnupg/blob/master/doc/DETAILS#general-status-codes). ' \
' Note: specify these after positional arguments or use -- to separate them .'
if galaxy_type == ' collection ' :
install_parser . add_argument ( ' -p ' , ' --collections-path ' , dest = ' collections_path ' ,
@ -534,6 +537,9 @@ class GalaxyCLI(CLI):
install_parser . add_argument ( ' --required-valid-signature-count ' , dest = ' required_valid_signature_count ' , type = validate_signature_count ,
help = valid_signature_count_help , default = C . GALAXY_REQUIRED_VALID_SIGNATURE_COUNT )
install_parser . add_argument ( ' --ignore-signature-status-code ' , dest = ' ignore_gpg_errors ' , type = str , action = ' append ' ,
help = opt_help . argparse . SUPPRESS , default = C . GALAXY_IGNORE_INVALID_SIGNATURE_STATUS_CODES ,
choices = list ( GPG_ERROR_MAP . keys ( ) ) )
install_parser . add_argument ( ' --ignore-signature-status-codes ' , dest = ' ignore_gpg_errors ' , type = str , action = ' extend ' , nargs = ' + ' ,
help = ignore_gpg_status_help , default = C . GALAXY_IGNORE_INVALID_SIGNATURE_STATUS_CODES ,
choices = list ( GPG_ERROR_MAP . keys ( ) ) )
install_parser . add_argument ( ' --offline ' , dest = ' offline ' , action = ' store_true ' , default = False ,
@ -558,6 +564,9 @@ class GalaxyCLI(CLI):
install_parser . add_argument ( ' --required-valid-signature-count ' , dest = ' required_valid_signature_count ' , type = validate_signature_count ,
help = valid_signature_count_help , default = C . GALAXY_REQUIRED_VALID_SIGNATURE_COUNT )
install_parser . add_argument ( ' --ignore-signature-status-code ' , dest = ' ignore_gpg_errors ' , type = str , action = ' append ' ,
help = opt_help . argparse . SUPPRESS , default = C . GALAXY_IGNORE_INVALID_SIGNATURE_STATUS_CODES ,
choices = list ( GPG_ERROR_MAP . keys ( ) ) )
install_parser . add_argument ( ' --ignore-signature-status-codes ' , dest = ' ignore_gpg_errors ' , type = str , action = ' extend ' , nargs = ' + ' ,
help = ignore_gpg_status_help , default = C . GALAXY_IGNORE_INVALID_SIGNATURE_STATUS_CODES ,
choices = list ( GPG_ERROR_MAP . keys ( ) ) )