[oe-commits] [openembedded-core] 08/19: scripts/oe-pkgdata-util: Fix variable name in error handling

git at git.openembedded.org git at git.openembedded.org
Mon May 9 07:12:46 UTC 2016


rpurdie pushed a commit to branch fido
in repository openembedded-core.

commit af95fa33067542fe6f253d57b6dda575ceea5527
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon Oct 19 19:50:39 2015 +0000

    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)
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Joshua Lock <joshua.g.lock at intel.com>
---
 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 b075775..25a3d89 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list