diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-02-22 11:56:08 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-28 11:32:35 +0000 |
commit | 1e2bc7d861555a04350a87f19047efdc717046be (patch) | |
tree | b3498e4b44d35800f0b2f1ebc98c762831c949fb /scripts | |
parent | 8a952407b192313515e91570632446b6dff01665 (diff) | |
download | openembedded-core-1e2bc7d861555a04350a87f19047efdc717046be.tar.gz openembedded-core-1e2bc7d861555a04350a87f19047efdc717046be.tar.bz2 openembedded-core-1e2bc7d861555a04350a87f19047efdc717046be.zip |
devtool: upgrade: drop superfluous call to validate_pn
The recipename argument to devtool upgrade specifies an existing recipe,
so by definition the name will be valid (or it won't exist) - we don't
need to validate it ourselves, that's only needed for situations like in
devtool add where we're creating a new recipe.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index a446c557bc..279a65f62a 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py @@ -297,12 +297,7 @@ def upgrade(args, config, basepath, workspace): if args.srcbranch and not args.srcrev: raise DevtoolError("If you specify --srcbranch/-B then you must use --srcrev/-S to specify the revision" % args.recipename) - reason = oe.recipeutils.validate_pn(args.recipename) - if reason: - raise DevtoolError(reason) - tinfoil = setup_tinfoil(basepath=basepath, tracking=True) - rd = parse_recipe(config, tinfoil, args.recipename, True) if not rd: return 1 |