[F dbdump] dark and dirty fix for db-copy command
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 04 Aug 2009 17:39:02 +0200
changeset 2682 0188a4a02403
parent 2681 eda37d59f6d4
child 2683 52b1a86c1913
[F dbdump] dark and dirty fix for db-copy command
server/serverctl.py
--- a/server/serverctl.py	Tue Aug 04 17:16:05 2009 +0200
+++ b/server/serverctl.py	Tue Aug 04 17:39:02 2009 +0200
@@ -663,7 +663,9 @@
         import tempfile
         srcappid = pop_arg(args, 1, msg='No source instance specified !')
         destappid = pop_arg(args, msg='No destination instance specified !')
-        _, output = tempfile.mkstemp()
+        # XXX -system necessary to match file name modified on source restore.
+        # should not have to expect this.
+        _, output = tempfile.mkstemp('-system.sql')
         if ':' in srcappid:
             host, srcappid = srcappid.split(':')
             _remote_dump(host, srcappid, output, self.config.sudo)