Patchwork [bitbake-devel,1/1] cache.py: remove the duplicated self.file_depends

login
register
mail settings
Submitter Robert Yang
Date Jan. 25, 2013, 8:34 a.m.
Message ID <917f8cbf7fd9f2f99d3a53474084240e9961acd5.1359083205.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/43363/
State New
Headers show

Comments

Robert Yang - Jan. 25, 2013, 8:34 a.m.
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]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 bitbake/lib/bb/cache.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index a3c073a..fd5fbb3 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -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