]> 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)
committerJoshua Lock <joshua.g.lock@intel.com>
Fri, 6 May 2016 14:51:14 +0000 (15:51 +0100)
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)

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>
scripts/oe-pkgdata-util

index b075775b8ff084090095cc9d18f40c5bec261a6a..25a3d89fb27526a94f0b20e910d7056164f8fc11 100755 (executable)
@@ -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)