summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/persist_data.py
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-05-13 07:53:18 +0000
committerRichard Purdie <richard@openedhand.com>2008-05-13 07:53:18 +0000
commite14d7dcbeea45e2000b9ec3174d24aa90f786adc (patch)
tree5d361178fb09e20fd5e2f818efefeda6f44fe931 /bitbake/lib/bb/persist_data.py
parent152f14b598655535664e51ac83318d2c60dfa7d4 (diff)
downloadpoky-e14d7dcbeea45e2000b9ec3174d24aa90f786adc.tar.gz
bitbake: Sync with 1.8 branch
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4463 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/persist_data.py')
-rw-r--r--bitbake/lib/bb/persist_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py
index 3103805ce1..79e7448bee 100644
--- a/bitbake/lib/bb/persist_data.py
+++ b/bitbake/lib/bb/persist_data.py
@@ -43,9 +43,9 @@ class PersistData:
43 Why sqlite? It handles all the locking issues for us. 43 Why sqlite? It handles all the locking issues for us.
44 """ 44 """
45 def __init__(self, d): 45 def __init__(self, d):
46 self.cachedir = bb.data.getVar("CACHE", d, True) 46 self.cachedir = bb.data.getVar("PERSISTENT_DIR", d, True) or bb.data.getVar("CACHE", d, True)
47 if self.cachedir in [None, '']: 47 if self.cachedir in [None, '']:
48 bb.msg.fatal(bb.msg.domain.PersistData, "Please set the 'CACHE' variable.") 48 bb.msg.fatal(bb.msg.domain.PersistData, "Please set the 'PERSISTENT_DIR' or 'CACHE' variable.")
49 try: 49 try:
50 os.stat(self.cachedir) 50 os.stat(self.cachedir)
51 except OSError: 51 except OSError: