fix arg sanity check

This commit is contained in:
Mike McLean 2017-03-29 16:28:54 -04:00
parent a758374fdf
commit 63029e3d37

View file

@ -7123,7 +7123,7 @@ def handle_dist_repo(options, session, args):
task_opts, args = parser.parse_args(args)
if len(args) < 1:
parser.error(_('You must provide a tag to generate the repo from'))
if not task_opts.allow_unsigned:
if len(args) < 2 and not task_opts.allow_unsigned:
parser.error(_('Please specify one or more GPG key IDs (or --allow-unsigned)'))
if task_opts.allow_unsigned and task_opts.skip_unsigned:
parser.error(_('allow_unsigned and skip_unsigned are mutually exclusive'))