From: Paul Eggleton Date: Sun, 21 Feb 2016 22:56:08 +0000 (+1300) Subject: devtool: upgrade: drop superfluous call to validate_pn X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~26820 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e2bc7d861555a04350a87f19047efdc717046be;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton --- diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index a446c557bcc..279a65f62a9 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