summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/persist_data.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-25 14:57:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-27 10:35:30 +0000
commit4cd96710785eb05abeff1f281878655118d4a7dd (patch)
treef2e15210fa7057df398c6e20ecc51f1d747a12ab /bitbake/lib/bb/persist_data.py
parent0a434ac10158e2011d41a1189e65e9474b1672be (diff)
downloadpoky-4cd96710785eb05abeff1f281878655118d4a7dd.tar.gz
bitbake: Update users of getVar/setVar to use the data store functions directly
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/persist_data.py')
-rw-r--r--bitbake/lib/bb/persist_data.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py
index 551b58a2a9..17620ef331 100644
--- a/bitbake/lib/bb/persist_data.py
+++ b/bitbake/lib/bb/persist_data.py
@@ -192,9 +192,9 @@ def connect(database):
192 192
193def persist(domain, d): 193def persist(domain, d):
194 """Convenience factory for SQLTable objects based upon metadata""" 194 """Convenience factory for SQLTable objects based upon metadata"""
195 import bb.data, bb.utils 195 import bb.utils
196 cachedir = (bb.data.getVar("PERSISTENT_DIR", d, True) or 196 cachedir = (d.getVar("PERSISTENT_DIR", True) or
197 bb.data.getVar("CACHE", d, True)) 197 d.getVar("CACHE", True))
198 if not cachedir: 198 if not cachedir:
199 logger.critical("Please set the 'PERSISTENT_DIR' or 'CACHE' variable") 199 logger.critical("Please set the 'PERSISTENT_DIR' or 'CACHE' variable")
200 sys.exit(1) 200 sys.exit(1)