From ef9c095334632b8576667800d52b842f1cbf52ea Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 30 Jul 2009 18:03:51 +0100 Subject: bitbake: Make sure tables exist when renaming Signed-off-by: Richard Purdie --- bitbake-dev/lib/bb/persist_data.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake-dev/lib/bb') diff --git a/bitbake-dev/lib/bb/persist_data.py b/bitbake-dev/lib/bb/persist_data.py index ea921072c..1d60a0a13 100644 --- a/bitbake-dev/lib/bb/persist_data.py +++ b/bitbake-dev/lib/bb/persist_data.py @@ -76,6 +76,7 @@ class PersistData: """ self.connection.execute("DROP TABLE IF EXISTS %s;" % newdomain) + self.addDomain(domain) self.connection.execute("ALTER TABLE %s RENAME TO %s;" % (domain, newdomain)) def getKeyValues(self, domain): -- cgit v1.2.3