<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>60582</integer>
    </number>
    <user>
      <string>zecke</string>
    </user>
    <title>
      <string>allow to place the persistent data into a persistent directory (!= tmp)</string>
    </title>
    <contents>
      <string>Index: persist_data.py
===================================================================
--- persist_data.py	(Revision 1067)
+++ persist_data.py	(Arbeitskopie)
@@ -43,9 +43,9 @@
     Why sqlite? It handles all the locking issues for us.
     &quot;&quot;&quot;
     def __init__(self, d):
-        self.cachedir = bb.data.getVar(&quot;CACHE&quot;, d, True)
+        self.cachedir = bb.data.getVar(&quot;PERSISTENT_DIR&quot;, d, True) or bb.data.getVar(&quot;CACHE&quot;, d, True)
         if self.cachedir in [None, '']:
-            bb.msg.fatal(bb.msg.domain.PersistData, &quot;Please set the 'CACHE' variable.&quot;)
+            bb.msg.fatal(bb.msg.domain.PersistData, &quot;Please set the 'PERSISTENT_DIR' or 'CACHE' variable.&quot;)
         try:
             os.stat(self.cachedir)
         except OSError:
</string>
    </contents>
    <universal-time>
      <integer>3419501192</integer>
    </universal-time>
    <channel>
      <string>#oe</string>
    </channel>
    <colorization-mode>
      <string></string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <keyword>TRUE</keyword>
    </is-unicode>
  </paste>
</paste-with-annotations>