diff options
-rw-r--r-- | bitbake-dev/lib/bb/persist_data.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/persist_data.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/persist_data.py b/bitbake-dev/lib/bb/persist_data.py index ea921072cd..1d60a0a139 100644 --- a/bitbake-dev/lib/bb/persist_data.py +++ b/bitbake-dev/lib/bb/persist_data.py | |||
@@ -76,6 +76,7 @@ class PersistData: | |||
76 | """ | 76 | """ |
77 | 77 | ||
78 | self.connection.execute("DROP TABLE IF EXISTS %s;" % newdomain) | 78 | self.connection.execute("DROP TABLE IF EXISTS %s;" % newdomain) |
79 | self.addDomain(domain) | ||
79 | self.connection.execute("ALTER TABLE %s RENAME TO %s;" % (domain, newdomain)) | 80 | self.connection.execute("ALTER TABLE %s RENAME TO %s;" % (domain, newdomain)) |
80 | 81 | ||
81 | def getKeyValues(self, domain): | 82 | def getKeyValues(self, domain): |
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py index ea921072cd..1d60a0a139 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py | |||
@@ -76,6 +76,7 @@ class PersistData: | |||
76 | """ | 76 | """ |
77 | 77 | ||
78 | self.connection.execute("DROP TABLE IF EXISTS %s;" % newdomain) | 78 | self.connection.execute("DROP TABLE IF EXISTS %s;" % newdomain) |
79 | self.addDomain(domain) | ||
79 | self.connection.execute("ALTER TABLE %s RENAME TO %s;" % (domain, newdomain)) | 80 | self.connection.execute("ALTER TABLE %s RENAME TO %s;" % (domain, newdomain)) |
80 | 81 | ||
81 | def getKeyValues(self, domain): | 82 | def getKeyValues(self, domain): |