cooker.py: Fix cache errors when generation dotGraphs
authorRichard Purdie <rpurdie@linux.intel.com>
Wed, 18 Apr 2007 22:13:20 +0000 (22:13 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 18 Apr 2007 22:13:20 +0000 (22:13 +0000)
ChangeLog
lib/bb/cooker.py

index 0cb85db..7ea668e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ Changes in Bitbake 1.8.2:
        - Add PE (Package Epoch) support from Philipp Zabel (pH5)
        - Add code to handle inter-task dependencies
        - Allow operations other than assignment on flag variables
+       - Fix cache errors when generation dotGraphs
 
 Changes in Bitbake 1.8.0:
        - Release 1.7.x as a stable series
index 4b2a906..4d70b04 100644 (file)
@@ -201,7 +201,7 @@ class BBCooker:
             fnid = rq.runq_fnid[task]
             fn = taskdata.fn_index[fnid]
             pn = self.status.pkg_fn[fn]
-            version  = self.bb_cache.getVar('PV', fn, True ) + '-' + self.bb_cache.getVar('PR', fn, True)
+            version  = "%s:%s-%s" % self.status.pkg_pepvpr[fn]
             print >> tdepends_file, '"%s.%s" [label="%s %s\\n%s\\n%s"]' % (pn, taskname, pn, taskname, version, fn)
             for dep in rq.runq_depends[task]:
                 depfn = taskdata.fn_index[rq.runq_fnid[dep]]