aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/tools
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-07-28 18:19:02 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-09-05 00:31:23 +0100
commit93ce26f21cdbbd8a645792359cde87acf05144d7 (patch)
tree52293af05d70b1c12a9ff2fe99849a841179b290 /layerindex/tools
parent1eebd6e5252401578b638d3ac541547a9471c0eb (diff)
downloadopenembedded-core-contrib-93ce26f21cdbbd8a645792359cde87acf05144d7.tar.gz
Ensure logger is passed into runcmd function or use sys.stderr.write
Otherwise it might not be defined when an error.needs to be printed. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/tools')
-rwxr-xr-xlayerindex/tools/import_classic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/layerindex/tools/import_classic.py b/layerindex/tools/import_classic.py
index ee64b03f4d..ee9924616a 100755
--- a/layerindex/tools/import_classic.py
+++ b/layerindex/tools/import_classic.py
@@ -139,7 +139,7 @@ def main():
confparentdir = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../oe-classic'))
os.environ['BBPATH'] = str("%s:%s" % (confparentdir, oeclassicpath))
try:
- (tinfoil, tempdir) = recipeparse.init_parser(settings, branch, bitbakepath, nocheckout=True, classic=True)
+ (tinfoil, tempdir) = recipeparse.init_parser(settings, branch, bitbakepath, nocheckout=True, classic=True, logger=logger)
except recipeparse.RecipeParseError as e:
logger.error(str(e))
sys.exit(1)