From e39ce4fd011618d9f609c3e51abe622eee1b00c0 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 10 Jun 2009 10:29:27 +0200 Subject: [PATCH] use new entropy.db moveCountersToBranch method --- libraries/entropy/server/interfaces/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/entropy/server/interfaces/main.py b/libraries/entropy/server/interfaces/main.py index c3405410d..658339c41 100644 --- a/libraries/entropy/server/interfaces/main.py +++ b/libraries/entropy/server/interfaces/main.py @@ -3606,7 +3606,7 @@ class Server(Singleton, TextInterface): back = True, count = (count, maxcount,) ) - switch_status = dbconn.switchBranch(idpackage, to_branch) + switch_status = dbconn.switchBranch(idpackage, to_branch) if not switch_status: # remove idpackage dbconn.removePackage(idpackage) @@ -3616,7 +3616,7 @@ class Server(Singleton, TextInterface): dbconn.commitChanges() # now migrate counters - dbconn.moveCountersToBranch(to_branch) + dbconn.moveCountersToBranch(to_branch, from_branch = from_branch) self.close_server_database(dbconn) mytxt = blue("%s.") % (_("migration loop completed"),)