From 00f3a78f0909ebad36c98fe3ee20c3c57be136d1 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Wed, 1 Mar 2023 11:04:22 -0500 Subject: [PATCH] list-tagged: only check for build dir when --sigs is given --- cli/koji_cli/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 25190606..72ea3a2a 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -2727,10 +2727,10 @@ def anon_handle_list_tagged(goptions, session, args): for build in builds: build_idx[build['id']] = build builddir = pathinfo.build(build) - if os.path.isdir(builddir): - build['_dir'] = builddir - else: + if options.sigs and not os.path.isdir(builddir): warn('Build directory not found: %s' % builddir) + else: + build['_dir'] = builddir for rinfo in data: build = build_idx[rinfo['build_id']] builddir = build.get('_dir')