server/migractions.py
branchstable
changeset 4893 15ae9a33a7f2
parent 4721 8f63691ccb7f
child 4899 c666d265fb95
child 4904 a5250dafdcac
--- a/server/migractions.py	Fri Mar 12 14:52:22 2010 +0100
+++ b/server/migractions.py	Fri Mar 12 14:55:41 2010 +0100
@@ -145,9 +145,9 @@
         try:
             for source in repo.sources:
                 try:
-                    source.backup(osp.join(tmpdir, source.uri))
-                except Exception, exc:
-                    print '-> error trying to backup %s [%s]' % (source.uri, exc)
+                    source.backup(osp.join(tmpdir, source.uri, self.confirm))
+                except Exception, ex:
+                    print '-> error trying to backup %s [%s]' % (source.uri, ex)
                     if not self.confirm('Continue anyway?', default='n'):
                         raise SystemExit(1)
                     else:
@@ -187,7 +187,6 @@
             bkup = tarfile.open(backupfile, 'r|gz')
             bkup.extractall(path=tmpdir)
             bkup.close()
-
         self.config.open_connections_pools = False
         repo = self.repo_connect()
         for source in repo.sources: