]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/oe-pkgdata-util: Fix variable name in error handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Oct 2015 19:50:39 +0000 (19:50 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:20:54 +0000 (12:20 +0100)
Fix:
    logger.error('Unable to find pkgdata directory %s' % pkgdata_dir)
NameError: global name 'pkgdata_dir' is not defined

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-pkgdata-util

index 116cfae742f18fcd9ba1bdbf2d42a0a2115f99db..cb19cc4ae58139344ea4a58d0a217183d2dc1874 100755 (executable)
@@ -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)