From cb244fb382b1ed2e733e9096704e06f01426da21 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Thu, 28 Sep 2023 12:03:57 -0400 Subject: [PATCH] cli: fix wait-repo message when missing builds The wait-repo command performs a sanity-check when the user specifies an NVR with "--build". If there are no builds of the package in the tag at all, wait-repo will print a warning. The text of that warning was not accurate. The package itself may be in the tag (listPackages), but there are no builds of that package (getLatestBuilds). Correct the warning text to clarify the exact problem to the user. --- cli/koji_cli/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 28d4418a..a906b269 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -7220,7 +7220,7 @@ def anon_handle_wait_repo(options, session, args): for nvr in builds: data = session.getLatestBuilds(tag_id, package=nvr["name"]) if len(data) == 0: - warn("Package %s is not in tag %s" % (nvr["name"], tag)) + warn("No %s builds in tag %s" % (nvr["name"], tag)) else: present_nvr = [x["nvr"] for x in data][0] expected_nvr = '%(name)s-%(version)s-%(release)s' % nvr