diff options
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm/smart-channel-remove-all.patch')
-rw-r--r-- | meta/recipes-devtools/python/python-smartpm/smart-channel-remove-all.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-channel-remove-all.patch b/meta/recipes-devtools/python/python-smartpm/smart-channel-remove-all.patch new file mode 100644 index 0000000000..da23e7ce42 --- /dev/null +++ b/meta/recipes-devtools/python/python-smartpm/smart-channel-remove-all.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 6d2363a705697f615d9e5af5d6703b291e618b46 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Klauer <daniel.klauer@gin.de> | ||
3 | Date: Thu, 12 May 2016 17:55:01 +0200 | ||
4 | Subject: [PATCH] Fix channel command --remove-all option parsing | ||
5 | |||
6 | Option.take_action() stores a list of options given for validation later. | ||
7 | It strips leading dashes and turns remaining dashes into underscores. | ||
8 | This list is what ensure_action() will compare its arguments against, | ||
9 | thus we must use underscores here. | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Daniel Klauer <daniel.klauer@gin.de> | ||
14 | --- | ||
15 | smart/commands/channel.py | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/smart/commands/channel.py b/smart/commands/channel.py | ||
19 | index 108f3f1..6234f69 100644 | ||
20 | --- a/smart/commands/channel.py | ||
21 | +++ b/smart/commands/channel.py | ||
22 | @@ -164,7 +164,7 @@ def main(ctrl, opts): | ||
23 | opts.check_args_of_option("edit", 0) | ||
24 | opts.check_args_of_option("enable", -1) | ||
25 | opts.check_args_of_option("disable", -1) | ||
26 | - 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"]) | ||
29 | opts.check_remaining_args() | ||
30 | |||
31 | -- | ||
32 | 1.9.1 | ||
33 | |||