diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-09-30 21:54:47 +0000 | 
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-09-30 21:54:47 +0000 | 
| commit | 979f987c44928f2d47d319cf5fc34e7f3d2113b7 (patch) | |
| tree | b49dca768f15cc67c1fa2ff499552a2c67baa7c1 /bitbake-dev/lib/bb/cache.py | |
| parent | e2d321075a6c1aecd09a705d97f2347863a685f9 (diff) | |
| download | openembedded-core-979f987c44928f2d47d319cf5fc34e7f3d2113b7.tar.gz openembedded-core-979f987c44928f2d47d319cf5fc34e7f3d2113b7.tar.bz2 openembedded-core-979f987c44928f2d47d319cf5fc34e7f3d2113b7.zip | |
bitbake cache.py: When SRCREV autorevisioning for a recipe is in use, don't cache the recipe. Based on work from Heikki Paajanen
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5352 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake-dev/lib/bb/cache.py')
| -rw-r--r-- | bitbake-dev/lib/bb/cache.py | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/bitbake-dev/lib/bb/cache.py b/bitbake-dev/lib/bb/cache.py index fe38ea0aee..e0ba1de38e 100644 --- a/bitbake-dev/lib/bb/cache.py +++ b/bitbake-dev/lib/bb/cache.py @@ -259,6 +259,7 @@ class Cache:          Save the cache          Called from the parser when complete (or exiting)          """ +        import copy          if not self.has_cache:              return @@ -271,8 +272,14 @@ class Cache:          version_data['CACHE_VER'] = __cache_version__          version_data['BITBAKE_VER'] = bb.__version__ +        cache_data = copy.deepcopy(self.depends_cache) +        for fn in self.depends_cache: +            if '__BB_DONT_CACHE' in self.depends_cache[fn] and self.depends_cache[fn]['__BB_DONT_CACHE']: +                bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn) +                del cache_data[fn] +          p = pickle.Pickler(file(self.cachefile, "wb" ), -1 ) -        p.dump([self.depends_cache, version_data]) +        p.dump([cache_data, version_data])      def mtime(self, cachefile):          return bb.parse.cached_mtime_noerror(cachefile) @@ -373,6 +380,8 @@ class Cache:          if not self.getVar('BROKEN', file_name, True) and not self.getVar('EXCLUDE_FROM_WORLD', file_name, True):              cacheData.possible_world.append(file_name) +        # Touch this to make sure its in the cache +        self.getVar('__BB_DONT_CACHE', file_name, True)      def load_bbfile( self, bbfile , config):          """ | 
