From 63029e3d378fc0884173a13efb256a37a3515119 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Mar 30 2017 13:49:58 +0000 Subject: fix arg sanity check --- diff --git a/cli/koji b/cli/koji index 958c8c5..a3724f6 100755 --- a/cli/koji +++ b/cli/koji @@ -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'))