From: Richard Purdie Date: Mon, 19 Oct 2015 19:50:39 +0000 (+0000) Subject: scripts/oe-pkgdata-util: Fix variable name in error handling X-Git-Tag: 2015-10~28 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a1202ed17e11400f08064c9065fdfa996554d4ad;p=openembedded-core.git scripts/oe-pkgdata-util: Fix variable name in error handling Fix: logger.error('Unable to find pkgdata directory %s' % pkgdata_dir) NameError: global name 'pkgdata_dir' is not defined Signed-off-by: Richard Purdie Signed-off-by: Ross Burton --- diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index 116cfae742..cb19cc4ae5 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util @@ -496,7 +496,7 @@ def main(): sys.exit(1) if not os.path.exists(args.pkgdata_dir): - logger.error('Unable to find pkgdata directory %s' % pkgdata_dir) + logger.error('Unable to find pkgdata directory %s' % args.pkgdata_dir) sys.exit(1) ret = args.func(args)