[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:
Antony Lesuisse 2012-02-14 20:30:30 +01:00
parent 8fb70db8a0
commit c6ad066b59
1 changed files with 1 additions and 1 deletions

View File

@ -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":