diff options
author | Richard Purdie <richard@openedhand.com> | 2008-05-13 07:53:18 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-05-13 07:53:18 +0000 |
commit | e14d7dcbeea45e2000b9ec3174d24aa90f786adc (patch) | |
tree | 5d361178fb09e20fd5e2f818efefeda6f44fe931 /bitbake/lib/bb/persist_data.py | |
parent | 152f14b598655535664e51ac83318d2c60dfa7d4 (diff) | |
download | ast2050-yocto-poky-e14d7dcbeea45e2000b9ec3174d24aa90f786adc.zip ast2050-yocto-poky-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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py index 3103805..79e7448 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py @@ -43,9 +43,9 @@ class PersistData: Why sqlite? It handles all the locking issues for us. """ def __init__(self, d): - self.cachedir = bb.data.getVar("CACHE", d, True) + self.cachedir = bb.data.getVar("PERSISTENT_DIR", d, True) or bb.data.getVar("CACHE", d, True) if self.cachedir in [None, '']: - bb.msg.fatal(bb.msg.domain.PersistData, "Please set the 'CACHE' variable.") + bb.msg.fatal(bb.msg.domain.PersistData, "Please set the 'PERSISTENT_DIR' or 'CACHE' variable.") try: os.stat(self.cachedir) except OSError: |