diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | lib/bb/persist_data.py | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -134,6 +134,8 @@ Changes in Bitbake 1.9.x: - Flush stdout/stderr before forking to fix duplicate console output - Make sure recrdeps tasks include all inter-task dependencies of a given fn - Add bb.runqueue.check_stamp_fn() for use by packaged-staging + - Add PERSISTENT_DIR to store the PersistData in a persistent + directory != the cache dir. Changes in Bitbake 1.8.0: - Release 1.7.x as a stable series diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index 3103805ce1..79e7448bee 100644 --- a/lib/bb/persist_data.py +++ b/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: |