<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 15, 2016 at 10:02 AM, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":3dd" class="a3s aXjCH m1568f27d419f5841">There are some cases we want to parse recipes without any cache<br>
setup or involvement. Split out the standalone functions into<br>
a NoCache variant which the Cache is based upon, setting the scene<br>
for further cleanup and restructuring.<br>
<br>
Signed-off-by: Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@<wbr>linuxfoundation.org</a>&gt;<br>
<br>
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py<br>
index 7118c83..8c1fe11 100644<br>
--- a/bitbake/lib/bb/cache.py<br>
+++ b/bitbake/lib/bb/cache.py<br>
@@ -265,12 +265,68 @@ def realfn2virtual(realfn, cls):<br>
         return realfn<br>
     return &quot;virtual:&quot; + cls + &quot;:&quot; + realfn<br>
<br>
-class Cache(object):<br>
+class NoCache(object):<br>
+<br>
+    def __init__(self, databuilder):<br>
+        self.databuilder = databuilder<br>
+        self.data = databuilder.data</div></blockquote></div><br>I like the idea, but do we really need to pass in databuilder and set data if this class makes no use of it? It&#39;s all class methods, after all.<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>