devtools/__init__.py
branchstable
changeset 4404 1736f29ae4e4
parent 4212 ab6573088b4a
child 4436 294e084f1263
--- a/devtools/__init__.py	Thu Jan 28 14:29:52 2010 +0100
+++ b/devtools/__init__.py	Thu Jan 28 14:30:05 2010 +0100
@@ -321,13 +321,13 @@
         from cubicweb.server import init_repository
         init_repository(config, interactive=False, drop=True, vreg=vreg)
 
-def cleanup_sqlite(dbfile, removecube=False):
+def cleanup_sqlite(dbfile, removetemplate=False):
     try:
         os.remove(dbfile)
         os.remove('%s-journal' % dbfile)
     except OSError:
         pass
-    if removecube:
+    if removetemplate:
         try:
             os.remove('%s-template' % dbfile)
         except OSError: