From 2a7286ff0a33e643e881b0a66675fd20462750a2 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Feb 02 2023 09:56:48 +0000 Subject: PR#3672: CLI download-tasks has sorted tasks in check closed/not closed tasks Merges #3672 https://pagure.io/koji/pull-request/3672 Fixes: #3671 https://pagure.io/koji/issue/3671 CLI download-task has not sorted tasks for check closed/not closed tasks --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index c45f655..3469417 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -6968,7 +6968,7 @@ def anon_handle_download_task(options, session, args): if task["id"] not in required_tasks: required_tasks[task["id"]] = task - for task_id in required_tasks: + for task_id in sorted(required_tasks): task_state = koji.TASK_STATES.get(required_tasks[task_id]["state"]) if task_state != "CLOSED": if task_id == base_task_id: