From patchwork Wed Feb 29 14:15:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,21/32] cooker.py: Fix a bug due to variable name Date: Wed, 29 Feb 2012 14:15:18 -0000 From: Shane Wang X-Patchwork-Id: 22463 Message-Id: <83dbb646ca0fd8e565633e06c477e19c498c7f8d.1330523904.git.shane.wang@intel.com> To: bitbake-devel@lists.openembedded.org From: Dongxiao Xu fnid is an outer variable and shouldn't be overrided, change the inner variable name from 'fnid' to 'id'. Signed-off-by: Dongxiao Xu Signed-off-by: Joshua Lock --- bitbake/lib/bb/cooker.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 2e4a1ba..b23b569 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -501,8 +501,8 @@ class BBCooker: pn_provider = "" targetid = taskdata.getbuild_id(item) if targetid in taskdata.build_targets and taskdata.build_targets[targetid]: - fnid = taskdata.build_targets[targetid][0] - fn_provider = taskdata.fn_index[fnid] + id = taskdata.build_targets[targetid][0] + fn_provider = taskdata.fn_index[id] pn_provider = self.status.pkg_fn[fn_provider] else: pn_provider = item