From cb92653b484fdd72065729e7d22ba8d9f20276d9 Mon Sep 17 00:00:00 2001 From: Jana Cupova Date: Jan 31 2023 09:39:51 +0000 Subject: CLI download-tasks has sorted tasks in check closed/not closed tasks Fixes: https://pagure.io/koji/issue/3671 --- 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: