summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-19 19:50:39 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-09 07:11:33 (GMT)
commit5d677d7dba1a3e5e525b1068d6d2a59be4458d2c (patch)
tree269f49ab208cb2e03b0521baee89d5824c75513b
parentdd90a73c51b59a5666729af99adc9aa992c5beba (diff)
downloadpoky-5d677d7dba1a3e5e525b1068d6d2a59be4458d2c.tar.gz
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 <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/oe-pkgdata-util2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index b075775..25a3d89 100755
--- a/scripts/oe-pkgdata-util
+++ b/scripts/oe-pkgdata-util
@@ -493,7 +493,7 @@ def main():
493 sys.exit(1) 493 sys.exit(1)
494 494
495 if not os.path.exists(args.pkgdata_dir): 495 if not os.path.exists(args.pkgdata_dir):
496 logger.error('Unable to find pkgdata directory %s' % pkgdata_dir) 496 logger.error('Unable to find pkgdata directory %s' % args.pkgdata_dir)
497 sys.exit(1) 497 sys.exit(1)
498 498
499 ret = args.func(args) 499 ret = args.func(args)