[OE-core] [PATCH] scripts: Fixed typo in parameter that was causing exception
Humberto Ibarra
humberto.ibarra.lopez at intel.com
Fri Jul 1 15:37:24 UTC 2016
There is a typo in the logging parameters, "filname" is being used instead of "filename" for yocto-kernel, yocto-layer and wic scripts. This didn't cause issues before since python 2 didn't validate unused parameters but with python >= 3.4.3 an exception is thrown. This patch fixes this parameter name.
[YOCTO #9834]
---
scripts/wic | 2 +-
scripts/yocto-kernel | 2 +-
scripts/yocto-layer | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/wic b/scripts/wic
index 9023755..fe2c33f 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -294,7 +294,7 @@ subcommands = {
def start_logging(loglevel):
- logging.basicConfig(filname='wic.log', filemode='w', level=loglevel)
+ logging.basicConfig(filename='wic.log', filemode='w', level=loglevel)
def main(argv):
diff --git a/scripts/yocto-kernel b/scripts/yocto-kernel
index fd97cb7..5c70d0c 100755
--- a/scripts/yocto-kernel
+++ b/scripts/yocto-kernel
@@ -351,7 +351,7 @@ subcommands = {
def start_logging(loglevel):
- logging.basicConfig(filname = 'yocto-kernel.log', filemode = 'w', level=loglevel)
+ logging.basicConfig(filename = 'yocto-kernel.log', filemode = 'w', level=loglevel)
def main():
diff --git a/scripts/yocto-layer b/scripts/yocto-layer
index a5267f2..d58faca 100755
--- a/scripts/yocto-layer
+++ b/scripts/yocto-layer
@@ -113,7 +113,7 @@ subcommands = {
def start_logging(loglevel):
- logging.basicConfig(filname = 'yocto-layer.log', filemode = 'w', level=loglevel)
+ logging.basicConfig(filename = 'yocto-layer.log', filemode = 'w', level=loglevel)
def main():
--
2.4.11
More information about the Openembedded-core
mailing list