Bug 4489

Summary: cachedpath.py: global name 'error' is not defined
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, sgw, yi.zhao
Version: 1.5   
Target Milestone: 1.5 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Robert Yang 2013-05-13 03:02:28 UTC
The following code in cachedpath.py:

124         try:
125             # Note that listdir and error are globals in this module due
126             # to earlier import-*.
127             names = os.listdir(top)
128         except error as err:

The error is not global since we don't use "from os import *", so it
should be os.error.
Comment 2 Yi Zhao 2013-06-05 02:45:36 UTC
Verified.