diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-10-11 16:13:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-01 21:32:03 +0000 |
commit | 0fe742674e9a37e7b352065a1b524d37e5a41137 (patch) | |
tree | bfaeb9311380e3598fe9a1b083b3d44a67a6c1fb /scripts/lib/devtool | |
parent | a360fa7d519320faf53065ba9584a426fd275c1a (diff) | |
download | poky-0fe742674e9a37e7b352065a1b524d37e5a41137.tar.gz |
devtool: disable creating workspace for extract and search subcommands
For subcommands that don't actually involve the workspace, don't
auto-create the workspace.
(From OE-Core rev: 90cba7992bc1d227e242666cd486414bd4a45f7e)
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/devtool')
-rw-r--r-- | scripts/lib/devtool/search.py | 2 | ||||
-rw-r--r-- | scripts/lib/devtool/standard.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/search.py b/scripts/lib/devtool/search.py index c2f420c33c..1c8eaff49b 100644 --- a/scripts/lib/devtool/search.py +++ b/scripts/lib/devtool/search.py | |||
@@ -77,4 +77,4 @@ def register_commands(subparsers, context): | |||
77 | parser_search = subparsers.add_parser('search', help='Search available recipes', | 77 | parser_search = subparsers.add_parser('search', help='Search available recipes', |
78 | description='Searches for available target recipes. Matches on recipe name, package name, description and installed files, and prints the recipe name on match.') | 78 | description='Searches for available target recipes. Matches on recipe name, package name, description and installed files, and prints the recipe name on match.') |
79 | parser_search.add_argument('keyword', help='Keyword to search for (regular expression syntax allowed)') | 79 | parser_search.add_argument('keyword', help='Keyword to search for (regular expression syntax allowed)') |
80 | parser_search.set_defaults(func=search) | 80 | parser_search.set_defaults(func=search, no_workspace=True) |
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 9fd936f146..6de24eb524 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -1166,7 +1166,7 @@ def register_commands(subparsers, context): | |||
1166 | parser_extract.add_argument('srctree', help='Path to where to extract the source tree') | 1166 | parser_extract.add_argument('srctree', help='Path to where to extract the source tree') |
1167 | parser_extract.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout') | 1167 | parser_extract.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout') |
1168 | parser_extract.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)') | 1168 | parser_extract.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)') |
1169 | parser_extract.set_defaults(func=extract) | 1169 | parser_extract.set_defaults(func=extract, no_workspace=True) |
1170 | 1170 | ||
1171 | parser_sync = subparsers.add_parser('sync', help='Synchronize the source for an existing recipe', | 1171 | parser_sync = subparsers.add_parser('sync', help='Synchronize the source for an existing recipe', |
1172 | description='Synchronize the source for an existing recipe', | 1172 | description='Synchronize the source for an existing recipe', |