use new entropy.db switchBranch method

This commit is contained in:
Fabio Erculiani
2009-06-10 13:48:26 +02:00
parent 4883c07919
commit 7f5d2e454c
+1 -4
View File
@@ -3606,10 +3606,7 @@ class Server(Singleton, TextInterface):
back = True,
count = (count, maxcount,)
)
switch_status = dbconn.switchBranch(idpackage, to_branch)
if not switch_status:
# remove idpackage
dbconn.removePackage(idpackage)
dbconn.switchBranch(idpackage, to_branch)
dbconn.commitChanges()
switched.add(idpackage)