]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/app/phpBB.py
Remove string exception from remaster.
[wizard.git] / wizard / app / phpBB.py
index ea767d1178dc2aae250880129e3bb80fe2f33e41..c8fa1f591d9bb4627e55a4e094e7b1132213ecc6 100644 (file)
@@ -3,7 +3,7 @@ import logging
 import os.path
 import distutils.version
 
-from wizard import app, install, resolve, util
+from wizard import app, install, resolve, sql, util
 from wizard.app import php
 
 #phpBB                104 installs
@@ -39,8 +39,9 @@ class Application(app.Application):
             version = '2' + version
         return distutils.version.LooseVersion(version)
 
+    @app.throws_database_errors
     def remove(self, deployment, options):
-        app.remove_database(deployment)
+        sql.drop(deployment.dsn)
 
     def install(self, version, options):
         old_mode = os.stat(".").st_mode
@@ -73,6 +74,10 @@ class Application(app.Application):
         logging.debug('install.php output:\n\n' + result)
         if 'Thank you' not in result:
             raise app.InstallFailure()
+        # Removing these trees will make upgrade merges annoying.  Maybe
+        # we should patch out the check and stick .htaccess files which
+        # block access for these folders (we'd probably have to make it
+        # available again for an upgrade though)
         #shutil.rmtree('install')
         #shutil.rmtree('contrib')