[FIX] DB operations(backup,restore) process corrected,were blocked if db_port was supplied

lp bug: https://launchpad.net/bugs/405721 fixed

bzr revid: jvo@tinyerp.com-20090730110552-irgeazuaqw0mhw49
This commit is contained in:
Joël Grand-Guillaume,Jvo
2009-07-30 16:35:52 +05:30
committed by Jay (Open ERP)
parent 1a65067cee
commit 68785e3579
+2 -2
View File
@@ -192,7 +192,7 @@ class db(netsvc.Service):
if tools.config['db_host']:
cmd.append('--host=' + tools.config['db_host'])
if tools.config['db_port']:
cmd.append('--port=' + tools.config['db_port'])
cmd.append('--port=' + str(tools.config['db_port']))
cmd.append(db_name)
stdin, stdout = tools.exec_pg_command_pipe(*tuple(cmd))
@@ -236,7 +236,7 @@ class db(netsvc.Service):
if tools.config['db_host']:
cmd.append('--host=' + tools.config['db_host'])
if tools.config['db_port']:
cmd.append('--port=' + tools.config['db_port'])
cmd.append('--port=' + str(tools.config['db_port']))
cmd.append('--dbname=' + db_name)
args2 = tuple(cmd)