Skip to contentSkip to conversation

cache.py: remove the duplicated self.file_depends

PATCH New Robert Yang 1 participant 2 messages Jan 25, 2013

lore
Share & tools
lore
#0 lore raw

cover cache.py: remove the duplicated self.file_depends

The following changes since commit ec2e1349f8ef7116f2f451b52b7d228199388147:

bitbake-layers: print the recipe's depends that crosses a layer boundary (2013-01-25 10:18:23 +0800)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/cache.py
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/cache.py

Robert Yang (1):
cache.py: remove the duplicated self.file_depends

 bitbake/lib/bb/cache.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
#1 lore raw

PATCH 1/1 cache.py: remove the duplicated self.file_depends

There are two "self.file_depends =" lines in cache.py::CoreRecipeInfo:

class CoreRecipeInfo(RecipeInfoCommon):
__slots__ = ()

cachefile = "bb_cache.dat"

def __init__(self, filename, metadata):
self.file_depends = metadata.getVar('__depends', False)
[snip]
self.file_depends = metadata.getVar('__depends', False)

They are duplicated, remove the last one.

[YOCTO #3795]

---
 bitbake/lib/bb/cache.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
bitbake/lib/bb/cache.py +0 -1
index a3c073a..fd5fbb3 100644
@@ -119,7 +119,6 @@ class CoreRecipeInfo(RecipeInfoCommon):
         self.basetaskhashes = self.taskvar('BB_BASEHASH', self.tasks, metadata)
         self.hashfilename = self.getvar('BB_HASHFILENAME', metadata)
 
-        self.file_depends = metadata.getVar('__depends', False)
         self.task_deps = metadata.getVar('_task_deps', False) or {'tasks': [], 'parents': {}}
 
         self.skipped = False
Signature · 1 line
1.7.1