# HG changeset patch # User Alexandre Fayolle # Date 1265042999 -3600 # Node ID 8cd447d11aedc9b5d78f9ab019fc01f5e3d849a9 # Parent d0bde029f6251452d02ad453a3b9a65a1a2a12b5# Parent 94a3a2dec8fc559df571da7f2fec47f1a4ad0297 merge diff -r d0bde029f625 -r 8cd447d11aed server/sqlutils.py --- a/server/sqlutils.py Fri Jan 29 18:03:10 2010 +0100 +++ b/server/sqlutils.py Mon Feb 01 17:49:59 2010 +0100 @@ -174,7 +174,7 @@ cmd = self.dbhelper.backup_command(self.dbname, self.dbhost, self.dbuser, backupfile, keepownership=False) - if subprocess.call(cmd): + if subprocess.call(cmd, shell=isinstance(cmd, str)): raise Exception('Failed command: %s' % cmd) def restore_from_file(self, backupfile, confirm, drop=True): @@ -183,7 +183,7 @@ self.encoding, keepownership=False, drop=drop): - if subprocess.call(cmd): + if subprocess.call(cmd, shell=isinstance(cmd, str)): print '-> Failed command: %s' % cmd if not confirm('Continue anyway?', default='n'): raise Exception('Failed command: %s' % cmd)