# HG changeset patch # User Sylvain Thénault # Date 1249400342 -7200 # Node ID 0188a4a02403cce2b5c4963d0f49ae319b573bb4 # Parent eda37d59f6d4315ae056def6472b05a19ce3b234 [F dbdump] dark and dirty fix for db-copy command diff -r eda37d59f6d4 -r 0188a4a02403 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)