diff roundup/backends/back_postgresql.py @ 2256:0b198ed096af

fixes for py2.1 (booleans, sigh)
author Richard Jones <richard@users.sourceforge.net>
date Thu, 06 May 2004 01:12:24 +0000
parents 20507f6759fc
children 7d0bb6601809
line wrap: on
line diff
--- a/roundup/backends/back_postgresql.py	Thu May 06 01:03:01 2004 +0000
+++ b/roundup/backends/back_postgresql.py	Thu May 06 01:12:24 2004 +0000
@@ -28,6 +28,9 @@
     command = 'DROP DATABASE %s'% config.POSTGRESQL_DATABASE['database']
     db_command(config, command)
 
+    if os.path.exists(config.DATABASE):
+        shutil.rmtree(config.DATABASE)
+
 def db_command(config, command):
     '''Perform some sort of database-level command. Retry 10 times if we
     fail by conflicting with another user.

Roundup Issue Tracker: http://roundup-tracker.org/