From: Patrick Ohly Date: Tue, 10 Jan 2017 11:46:58 +0000 (+0100) Subject: runqemu: fix undefined variable reference in check_arg_path() X-Git-Tag: uninative-1.5~183 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=3f11e4cbb36fc65ff92296065e5f0a508b210ac7;p=openembedded-core.git 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 --- diff --git a/scripts/runqemu b/scripts/runqemu index d74f252ec1..195f432810 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)