summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2014-07-30 14:26:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-02 09:26:14 +0100
commit3d1c6702534f1395b22775a4ff01a8152917dd04 (patch)
treedb777b4960b2918cd7c921dd868f6c45fad368bf
parentc07efbdd99a8fa1eb231f81ccdb02c4b398c0243 (diff)
downloadpoky-3d1c6702534f1395b22775a4ff01a8152917dd04.tar.gz
python-smartpm: fix option typo of command channel
When run smart, it fails: root@qemu1:~# smart channel --remove-all error: No action specified for command 'channel' If no default value of arg 'dest' is provided in method add_option() of optparse.OptionParser, it replaces hyphen('-') in new added option with underscore('_') as dest. In function ensure_action() it checks action strings with options from optparse.OptionParser. So it is 'remove_all' which need to be checked rather than 'remove-all'. (From OE-Core rev: 03266e89a67ec1373529fae32b2cedff21414ff5) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python-smartpm/smart-improve-error-reporting.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-improve-error-reporting.patch b/meta/recipes-devtools/python/python-smartpm/smart-improve-error-reporting.patch
index fece5b9009..2ca0f6d593 100644
--- a/meta/recipes-devtools/python/python-smartpm/smart-improve-error-reporting.patch
+++ b/meta/recipes-devtools/python/python-smartpm/smart-improve-error-reporting.patch
@@ -24,7 +24,7 @@ index aa76f91..63fbb35 100644
24+ opts.check_args_of_option("edit", 0) 24+ opts.check_args_of_option("edit", 0)
25+ opts.check_args_of_option("enable", -1) 25+ opts.check_args_of_option("enable", -1)
26+ opts.check_args_of_option("disable", -1) 26+ opts.check_args_of_option("disable", -1)
27+ opts.ensure_action("channel", ["add", "set", "remove", "remove-all", 27+ opts.ensure_action("channel", ["add", "set", "remove", "remove_all",
28+ "list", "show", "yaml", "enable", "disable"]) 28+ "list", "show", "yaml", "enable", "disable"])
29+ opts.check_remaining_args() 29+ opts.check_remaining_args()
30+ 30+