mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
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 rev: a1202ed17e11400f08064c9065fdfa996554d4ad)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -496,7 +496,7 @@ def main():
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not os.path.exists(args.pkgdata_dir):
|
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)
|
sys.exit(1)
|
||||||
|
|
||||||
ret = args.func(args)
|
ret = args.func(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user