From 5d677d7dba1a3e5e525b1068d6d2a59be4458d2c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 19 Oct 2015 19:50:39 +0000 Subject: 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 (From OE-Core master rev: a1202ed17e11400f08064c9065fdfa996554d4ad) (From OE-Core rev: af95fa33067542fe6f253d57b6dda575ceea5527) Signed-off-by: Richard Purdie Signed-off-by: Ross Burton Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- scripts/oe-pkgdata-util | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index b075775b8f..25a3d89fb2 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util @@ -493,7 +493,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) -- cgit v1.2.3-54-g00ecf