[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4781/8267] runqemu: fix undefined variable reference in check_arg_path()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 4781/8267] runqemu: fix undefined variable reference in check_arg_path()
- Date: Sun, 17 Dec 2017 02:31:05 +0000 (UTC)
commit 29618da02dee90b8303aaab42153796ebe6db518
Author: Patrick Ohly <patrick ohly intel com>
Date: 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
(From OE-Core rev: 3f11e4cbb36fc65ff92296065e5f0a508b210ac7)
Signed-off-by: Patrick Ohly <patrick ohly intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
scripts/runqemu | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]