server/migractions.py
changeset 4899 c666d265fb95
parent 4843 5f7363416765
parent 4893 15ae9a33a7f2
child 4905 cc94a3f3321f
--- a/server/migractions.py	Fri Mar 12 15:05:33 2010 +0100
+++ b/server/migractions.py	Fri Mar 12 16:11:56 2010 +0100
@@ -147,9 +147,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:
@@ -189,7 +189,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: