diff options
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 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: |