# HG changeset patch # User Sylvain Thénault # Date 1243503329 -7200 # Node ID 7df9c566aa3d1a5d178cfaf01857839d786a4df9 # Parent 606923dff11b164216a2083fc0c01fa2c20dae0a fix name of test database template (bad sed during template->cube migration) diff -r 606923dff11b -r 7df9c566aa3d devtools/__init__.py --- a/devtools/__init__.py Thu May 28 09:20:07 2009 +0200 +++ b/devtools/__init__.py Thu May 28 11:35:29 2009 +0200 @@ -329,7 +329,7 @@ pass if removecube: try: - os.remove('%s-cube' % dbfile) + os.remove('%s-template' % dbfile) except OSError: pass @@ -339,11 +339,11 @@ # remove database file if it exists (actually I know driver == 'sqlite' :) dbfile = source['system']['db-name'] cleanup_sqlite(dbfile) - cube = '%s-cube' % dbfile - if exists(cube): - shutil.copy(cube, dbfile) + template = '%s-template' % dbfile + if exists(template): + shutil.copy(template, dbfile) else: # initialize the database from cubicweb.server import init_repository init_repository(config, interactive=False, vreg=vreg) - shutil.copy(dbfile, cube) + shutil.copy(dbfile, template)