From 5685741da63a1844782b1afa5257c75367a020f6 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 8 Jul 2011 11:47:13 +0530 Subject: [PATCH] Modified restore_database in db_schema.py to account for spaces in root_password --- cgi-bin/webnotes/model/db_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/model/db_schema.py b/cgi-bin/webnotes/model/db_schema.py index 7b97a0cab2..831537b81d 100644 --- a/cgi-bin/webnotes/model/db_schema.py +++ b/cgi-bin/webnotes/model/db_schema.py @@ -358,7 +358,7 @@ class DbManager: mysql = mysql_path and os.path.join(mysql_path, 'mysql') or 'mysql' try: - ret = os.system("%s -u root -p%s %s < %s"%(mysql, root_password, target, source)) + ret = os.system("%s -u root -p%s %s < %s"%(mysql, "\ ".join(root_password.split(" ")), target, source)) except Exception,e: raise e