From d8f55890feb3d975e7d85416ba6ba5870f8b09d4 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 10 Jun 2013 10:49:47 +0200 Subject: [PATCH] [entropy.server.interfaces.db] _rewrite_treeupdates: use list instead of set We want to preserve the order and all_actions_cache is already filtering out the duplicates. --- lib/entropy/server/interfaces/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/entropy/server/interfaces/db.py b/lib/entropy/server/interfaces/db.py index 0aeb30643..4f56792cd 100644 --- a/lib/entropy/server/interfaces/db.py +++ b/lib/entropy/server/interfaces/db.py @@ -1136,7 +1136,7 @@ Name: %s one being worked out. """ all_actions_cache = set() - all_actions = set() + all_actions = [] for repository_id in self._entropy.repositories(): # avoid __default__ @@ -1152,7 +1152,7 @@ Name: %s if key in all_actions_cache: continue all_actions_cache.add(key) - all_actions.add((command, branch, date)) + all_actions.append((command, branch, date)) backed_up_entries = entropy_repository.listAllTreeUpdatesActions() # clear first