diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-11-23 08:55:45 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-01 21:32:05 +0000 |
commit | 0cc381029936f34da30a65122c6d952954e07178 (patch) | |
tree | c59ecc75425d7a497f94cacda79fa444e02d76e5 /scripts/lib/recipetool/append.py | |
parent | b381f804a541bb1d08e331c139a82e250f924c05 (diff) | |
download | poky-0cc381029936f34da30a65122c6d952954e07178.tar.gz |
recipetool: make plugin registration function name consistent with devtool
This should have been register_commands rather than register_command;
I used register_commands in devtool so lets change this here to be
consistent with that. (Since this is extensible through layers though we
need to remain compatible with the old name, so fall back to that if the
new function name isn't there.)
(From OE-Core rev: 1047f6592ac81643cd847f104da766dc4a4c81ea)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/append.py')
-rw-r--r-- | scripts/lib/recipetool/append.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py index 867d55a23b..558fd25ac5 100644 --- a/scripts/lib/recipetool/append.py +++ b/scripts/lib/recipetool/append.py | |||
@@ -435,7 +435,7 @@ def target_path(targetpath): | |||
435 | return targetpath | 435 | return targetpath |
436 | 436 | ||
437 | 437 | ||
438 | def register_command(subparsers): | 438 | def register_commands(subparsers): |
439 | common = argparse.ArgumentParser(add_help=False) | 439 | common = argparse.ArgumentParser(add_help=False) |
440 | common.add_argument('-m', '--machine', help='Make bbappend changes specific to a machine only', metavar='MACHINE') | 440 | common.add_argument('-m', '--machine', help='Make bbappend changes specific to a machine only', metavar='MACHINE') |
441 | common.add_argument('-w', '--wildcard-version', help='Use wildcard to make the bbappend apply to any recipe version', action='store_true') | 441 | common.add_argument('-w', '--wildcard-version', help='Use wildcard to make the bbappend apply to any recipe version', action='store_true') |