use new entropy.db moveCountersToBranch method

This commit is contained in:
Fabio Erculiani
2009-06-10 10:29:27 +02:00
parent cdadc9e808
commit e39ce4fd01
+2 -2
View File
@@ -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"),)