summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-10-11 16:13:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:30:54 +0000
commit90cba7992bc1d227e242666cd486414bd4a45f7e (patch)
treeaa881f2d531e659ae286b71ad9434843beae7a47 /scripts/lib
parent13ec296b5c35aefa2c44f64f8bd1ef54c4a0a731 (diff)
downloadopenembedded-core-90cba7992bc1d227e242666cd486414bd4a45f7e.tar.gz
openembedded-core-90cba7992bc1d227e242666cd486414bd4a45f7e.tar.bz2
openembedded-core-90cba7992bc1d227e242666cd486414bd4a45f7e.zip
devtool: disable creating workspace for extract and search subcommands
For subcommands that don't actually involve the workspace, don't auto-create the workspace. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/devtool/search.py2
-rw-r--r--scripts/lib/devtool/standard.py2
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):
parser_search = subparsers.add_parser('search', help='Search available recipes',
description='Searches for available target recipes. Matches on recipe name, package name, description and installed files, and prints the recipe name on match.')
parser_search.add_argument('keyword', help='Keyword to search for (regular expression syntax allowed)')
- parser_search.set_defaults(func=search)
+ 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):
parser_extract.add_argument('srctree', help='Path to where to extract the source tree')
parser_extract.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout')
parser_extract.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)')
- parser_extract.set_defaults(func=extract)
+ parser_extract.set_defaults(func=extract, no_workspace=True)
parser_sync = subparsers.add_parser('sync', help='Synchronize the source for an existing recipe',
description='Synchronize the source for an existing recipe',