diff options
Diffstat (limited to 'scripts/lib/devtool/package.py')
-rw-r--r-- | scripts/lib/devtool/package.py | 6 |
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 import subprocess import logging from bb.process import ExecutionError -from devtool import exec_build_env_command, setup_tinfoil, DevtoolError +from devtool import exec_build_env_command, setup_tinfoil, check_workspace_recipe, DevtoolError logger = logging.getLogger('devtool') @@ -30,9 +30,7 @@ def plugin_init(pluginlist): def package(args, config, basepath, workspace): """Entry point for the devtool 'package' subcommand""" - if not args.recipename in workspace: - raise DevtoolError("no recipe named %s in your workspace" % - args.recipename) + check_workspace_recipe(workspace, args.recipename) image_pkgtype = config.get('Package', 'image_pkgtype', '') if not image_pkgtype: |