diff --git a/server/eit/commands/pkgmove.py b/server/eit/commands/pkgmove.py index d720cda22..3c289b2df 100644 --- a/server/eit/commands/pkgmove.py +++ b/server/eit/commands/pkgmove.py @@ -103,7 +103,7 @@ class EitPkgmove(EitCommand): # move # - slotmove statement syntax: # slotmove -# - the order of the statements is taken into consideration (KEPT!). +# - the order of the statements is given by the unix time (ASC). # - lines not starting with " move" or " slotmove" # will be ignored. # - any line starting with "#" will be ignored as well. @@ -123,6 +123,9 @@ class EitPkgmove(EitCommand): repo.listAllTreeUpdatesActions() \ if t_repo == self._repository_id \ and t_branch == branch] + key_sorter = lambda x: x[0] + + treeupdates.sort(key=key_sorter) new_actions = [] while True: @@ -238,6 +241,7 @@ class EitPkgmove(EitCommand): continue # show submitted info + new_actions.sort(key=key_sorter) for unix_time, action in new_actions: entropy_server.output( "%s %s" % (unix_time, action), level="generic")