[oe-commits] [openembedded-core] 09/16: runqemu: fix undefined variable reference in check_arg_path()

git at git.openembedded.org git at git.openembedded.org
Thu Feb 23 23:14:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

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

commit b1caa1a77f1e0a2138570a6b45dbf268dce27558
Author: Patrick Ohly <patrick.ohly at intel.com>
AuthorDate: Tue Jan 10 12:46:58 2017 +0100

    runqemu: fix undefined variable reference in check_arg_path()
    
    'arg' isn't defined, the right name there is 'p'.
    
    This fixes a rather obscure error message when that code path
    ends up being taken:
    
    $ runqemu some/existing-file-name
    runqemu - ERROR - name 'arg' is not defined
    runqemu - ERROR - Try 'runqemu help' on how to use it
    
    Signed-off-by: Patrick Ohly <patrick.ohly at intel.com>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index d74f252..195f432 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -314,7 +314,7 @@ class BaseConfig(object):
             else:
                 raise Exception("Can't find FSTYPE from: %s" % p)
 
-        elif os.path.isdir(p) or re.search(':', arg) and re.search('/', arg):
+        elif os.path.isdir(p) or re.search(':', p) and re.search('/', p):
             if self.is_deploy_dir_image(p):
                 logger.info('DEPLOY_DIR_IMAGE: %s' % p)
                 self.set("DEPLOY_DIR_IMAGE", p)

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


More information about the Openembedded-commits mailing list