From 088b6429da19cdbd0d9fb8fccd2a4bb07f215fd8 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..8d533a3e33 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, root_password.replace(" ", "\ ")), target, source)) except Exception,e: raise e