summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 4c4bbadb4c..7659862f58 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -714,10 +714,8 @@ def create_recipe(args):
714 lines_after.append('INSANE_SKIP_${PN} += "already-stripped"') 714 lines_after.append('INSANE_SKIP_${PN} += "already-stripped"')
715 lines_after.append('') 715 lines_after.append('')
716 716
717 if args.fetch_dev: 717 if args.npm_dev:
718 extravalues['fetchdev'] = True 718 extravalues['NPM_INSTALL_DEV'] = 1
719 else:
720 extravalues['fetchdev'] = None
721 719
722 # Find all plugins that want to register handlers 720 # Find all plugins that want to register handlers
723 logger.debug('Loading recipe handlers') 721 logger.debug('Loading recipe handlers')
@@ -1313,7 +1311,7 @@ def register_commands(subparsers):
1313 group.add_argument('-S', '--srcrev', help='Source revision to fetch if fetching from an SCM such as git (default latest)') 1311 group.add_argument('-S', '--srcrev', help='Source revision to fetch if fetching from an SCM such as git (default latest)')
1314 parser_create.add_argument('-B', '--srcbranch', help='Branch in source repository if fetching from an SCM such as git (default master)') 1312 parser_create.add_argument('-B', '--srcbranch', help='Branch in source repository if fetching from an SCM such as git (default master)')
1315 parser_create.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)') 1313 parser_create.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)')
1316 parser_create.add_argument('--fetch-dev', action="store_true", help='For npm, also fetch devDependencies') 1314 parser_create.add_argument('--npm-dev', action="store_true", help='For npm, also fetch devDependencies')
1317 parser_create.add_argument('--devtool', action="store_true", help=argparse.SUPPRESS) 1315 parser_create.add_argument('--devtool', action="store_true", help=argparse.SUPPRESS)
1318 parser_create.add_argument('--mirrors', action="store_true", help='Enable PREMIRRORS and MIRRORS for source tree fetching (disabled by default).') 1316 parser_create.add_argument('--mirrors', action="store_true", help='Enable PREMIRRORS and MIRRORS for source tree fetching (disabled by default).')
1319 parser_create.set_defaults(func=create_recipe) 1317 parser_create.set_defaults(func=create_recipe)