[FIX] database restore dont prepend a space before the tempfile
lp bug: https://launchpad.net/bugs/859720 fixed bzr revid: al@openerp.com-20120214193030-uhqyuo70l527ypsn
This commit is contained in:
parent
8fb70db8a0
commit
c6ad066b59
|
@ -259,7 +259,7 @@ class db(netsvc.ExportService):
|
|||
tmpfile = (os.environ['TMP'] or 'C:\\') + os.tmpnam()
|
||||
file(tmpfile, 'wb').write(buf)
|
||||
args2=list(args2)
|
||||
args2.append(' ' + tmpfile)
|
||||
args2.append(tmpfile)
|
||||
args2=tuple(args2)
|
||||
stdin, stdout = tools.exec_pg_command_pipe(*args2)
|
||||
if not os.name == "nt":
|
||||
|
|
Loading…
Reference in New Issue