summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/persist_data.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-07-30 21:24:31 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-07-30 21:24:31 +0100
commit433c2d2318dc32843fb1f92487977d2152b72818 (patch)
tree5abf3379d4b43e9e74b2a3001428ab8c7d71e068 /bitbake/lib/bb/persist_data.py
parentef9c095334632b8576667800d52b842f1cbf52ea (diff)
downloadpoky-433c2d2318dc32843fb1f92487977d2152b72818.tar.gz
bitbake: Remove persist_data domain renaming code as it appears to expose sqlite bugs and data consistency issues
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/persist_data.py')
-rw-r--r--bitbake/lib/bb/persist_data.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py
index 1d60a0a139..bc4045fe85 100644
--- a/bitbake/lib/bb/persist_data.py
+++ b/bitbake/lib/bb/persist_data.py
@@ -69,16 +69,6 @@ class PersistData:
69 """ 69 """
70 self.connection.execute("DROP TABLE IF EXISTS %s;" % domain) 70 self.connection.execute("DROP TABLE IF EXISTS %s;" % domain)
71 71
72
73 def renameDomain(self, domain, newdomain):
74 """
75 Renames a domain, removing the target if it already exists
76 """
77
78 self.connection.execute("DROP TABLE IF EXISTS %s;" % newdomain)
79 self.addDomain(domain)
80 self.connection.execute("ALTER TABLE %s RENAME TO %s;" % (domain, newdomain))
81
82 def getKeyValues(self, domain): 72 def getKeyValues(self, domain):
83 """ 73 """
84 Return a list of key + value pairs for a domain 74 Return a list of key + value pairs for a domain