From 00f3a78f0909ebad36c98fe3ee20c3c57be136d1 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Mar 20 2023 12:40:27 +0000 Subject: list-tagged: only check for build dir when --sigs is given --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 2519060..72ea3a2 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')