summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/package.py')
-rw-r--r--scripts/lib/devtool/package.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/lib/devtool/package.py b/scripts/lib/devtool/package.py
index 3a7a36b600..28ecfed7a7 100644
--- a/scripts/lib/devtool/package.py
+++ b/scripts/lib/devtool/package.py
@@ -20,7 +20,7 @@ import os
20import subprocess 20import subprocess
21import logging 21import logging
22from bb.process import ExecutionError 22from bb.process import ExecutionError
23from devtool import exec_build_env_command, setup_tinfoil, DevtoolError 23from devtool import exec_build_env_command, setup_tinfoil, check_workspace_recipe, DevtoolError
24 24
25logger = logging.getLogger('devtool') 25logger = logging.getLogger('devtool')
26 26
@@ -30,9 +30,7 @@ def plugin_init(pluginlist):
30 30
31def package(args, config, basepath, workspace): 31def package(args, config, basepath, workspace):
32 """Entry point for the devtool 'package' subcommand""" 32 """Entry point for the devtool 'package' subcommand"""
33 if not args.recipename in workspace: 33 check_workspace_recipe(workspace, args.recipename)
34 raise DevtoolError("no recipe named %s in your workspace" %
35 args.recipename)
36 34
37 image_pkgtype = config.get('Package', 'image_pkgtype', '') 35 image_pkgtype = config.get('Package', 'image_pkgtype', '')
38 if not image_pkgtype: 36 if not image_pkgtype: