From b0c01abf0747cc88813bbda5e1f9daaed4dd13a9 Mon Sep 17 00:00:00 2001 From: Emily Zheng Date: Wed, 29 May 2024 15:01:15 +0800 Subject: [PATCH] Sort backup items by repo (#264) Different repos may have the same tags. Sort by both tag and repo. --- pubtools/_quay/push_docker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pubtools/_quay/push_docker.py b/pubtools/_quay/push_docker.py index 61044d31..651023f9 100644 --- a/pubtools/_quay/push_docker.py +++ b/pubtools/_quay/push_docker.py @@ -804,6 +804,7 @@ def run(self) -> None: backup_tags.items(), key=lambda x: ( x[0].tag, + x[0].repo, x[0].v2list_digest or "", x[0].v2s2_digest or "", x[0].v2s1_digest or "", @@ -813,6 +814,7 @@ def run(self) -> None: backup_tags2_shared.items(), key=lambda x: ( x[0].tag, + x[0].repo, x[0].v2list_digest or "", x[0].v2s2_digest or "", x[0].v2s1_digest or "",