Ver código fonte

cooker.py: Rename __depends to __base_depends after configuration parsing so we don't recheck the validity of the config files time after time. Also bump the cache revision to match the format change (from poky)

Richard Purdie 15 anos atrás
pai
commit
c6741cbaa6
3 arquivos alterados com 4 adições e 1 exclusões
  1. 2 0
      ChangeLog
  2. 1 1
      lib/bb/cache.py
  3. 1 0
      lib/bb/cooker.py

+ 2 - 0
ChangeLog

@@ -147,6 +147,8 @@ Changes in Bitbake 1.9.x:
 	- Raise an exception if SRCREV == 'INVALID'
 	- Fix hg fetcher username/password handling and fix crash
 	- Fix PACKAGES_DYNAMIC handling of packages with '++' in the name
+	- Rename __depends to __base_depends after configuration parsing so we don't
+	  recheck the validity of the config files time after time
 
 Changes in Bitbake 1.8.0:
 	- Release 1.7.x as a stable series

+ 1 - 1
lib/bb/cache.py

@@ -39,7 +39,7 @@ except ImportError:
     import pickle
     bb.msg.note(1, bb.msg.domain.Cache, "Importing cPickle failed. Falling back to a very slow implementation.")
 
-__cache_version__ = "128"
+__cache_version__ = "129"
 
 class Cache:
     """

+ 1 - 0
lib/bb/cooker.py

@@ -758,6 +758,7 @@ class BBCooker:
         self.handleCollections( bb.data.getVar("BBFILE_COLLECTIONS", self.configuration.data, 1) )
 
         bb.msg.debug(1, bb.msg.domain.Collection, "collecting .bb files")
+        bb.data.renameVar("__depends", "__base_depends", self.configuration.data)
         (filelist, masked) = self.collect_bbfiles()
         self.parse_bbfiles(filelist, masked)
         bb.msg.debug(1, bb.msg.domain.Collection, "parsing complete")